fix code style issues

solve merge conflicts

format code

format code

format code
This commit is contained in:
Frank Strieter
2022-03-23 08:33:19 +01:00
parent a27fb173dd
commit ccee85a05e
8 changed files with 222 additions and 225 deletions

View File

@@ -1,21 +1,24 @@
import { TestBed } from '@angular/core/testing';
import { TestBed } from '@angular/core/testing'
type CompilerOptions = Partial<{
providers: any[];
useJit: boolean;
preserveWhitespaces: boolean;
}>;
export type ConfigureFn = (testBed: typeof TestBed) => void;
providers: any[]
useJit: boolean
preserveWhitespaces: boolean
}>
export type ConfigureFn = (testBed: typeof TestBed) => void
export const configureTests = (configure: ConfigureFn, compilerOptions: CompilerOptions = {}) => {
export const configureTests = (
configure: ConfigureFn,
compilerOptions: CompilerOptions = {}
) => {
const compilerConfig: CompilerOptions = {
preserveWhitespaces: false,
...compilerOptions,
};
}
const configuredTestBed = TestBed.configureCompiler(compilerConfig);
const configuredTestBed = TestBed.configureCompiler(compilerConfig)
configure(configuredTestBed);
configure(configuredTestBed)
return configuredTestBed.compileComponents().then(() => configuredTestBed);
};
return configuredTestBed.compileComponents().then(() => configuredTestBed)
}