mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
fix code style issues
solve merge conflicts format code format code format code
This commit is contained in:
parent
a27fb173dd
commit
ccee85a05e
8 changed files with 222 additions and 225 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue