(format: string, outputFileName: string, locale: string | null = null)
| 357 | } |
| 358 | |
| 359 | driveXi18n(format: string, outputFileName: string, locale: string | null = null): void { |
| 360 | const errorSpy = jasmine.createSpy('consoleError').and.callFake(console.error); |
| 361 | const args = [...this.commandLineArgs, `--i18nFormat=${format}`, `--outFile=${outputFileName}`]; |
| 362 | if (locale !== null) { |
| 363 | args.push(`--locale=${locale}`); |
| 364 | } |
| 365 | const exitCode = mainXi18n(args, errorSpy); |
| 366 | expect(errorSpy).not.toHaveBeenCalled(); |
| 367 | expect(exitCode).toEqual(0); |
| 368 | } |
| 369 | |
| 370 | driveHmr(fileName: string, className: string): string | null { |
| 371 | const {rootNames, options} = readNgcCommandLineAndConfiguration(this.commandLineArgs); |
no test coverage detected