Skip to content

Commit

Permalink
fix(global-injections): allow override injections
Browse files Browse the repository at this point in the history
  • Loading branch information
Netanel Basal committed May 22, 2019
1 parent 5456230 commit e1eaa5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/spectator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@netbasal/spectator",
"description": "Angular tests made easy",
"author": "Netanel Basal <netanel7799s@gmail.com>",
"version": "3.9.0",
"version": "3.9.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
3 changes: 1 addition & 2 deletions projects/spectator/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ const defaultOptions: SpectatorOptions<any, any> = {
declareComponent: true
};

const { declarations: globalDec, providers: globalProviders, imports: globalImports } = getGlobalsInjections();

export function initialModule<T, C = HostComponent>(
options: SpectatorOptions<T, C> | Type<T>,
withHost = false
Expand All @@ -49,6 +47,7 @@ export function initialModule<T, C = HostComponent>(
component: Type<T>;
host: Type<C>;
} {
const { declarations: globalDec, providers: globalProviders, imports: globalImports } = getGlobalsInjections();
const merged = Object.assign({}, defaultOptions, options);
let moduleMetadata: TestModuleMetadata & Partial<SpectatorOptions<T, C>>;
let component;
Expand Down

0 comments on commit e1eaa5d

Please sign in to comment.