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