Skip to content

Commit

Permalink
Merge pull request #4 from ng-turkey/fix/spec-provider-default-contex…
Browse files Browse the repository at this point in the history
…t-map

Fix spec for contextMap default value
  • Loading branch information
mehmet-erim authored Apr 8, 2019
2 parents 495b2a0 + 38c495c commit 1a798b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/provider.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ describe('ContextProviderComponent', function(this: UProviderComponent) {
});

it('should have empty object as contextMap (undefined/null input)', () => {
setProp.call(this, 'provide', undefined);
setProp.call(this, 'contextMap', undefined);

expect(this.provider.contextMap).toEqual({});

setProp.call(this, 'provide', null);
setProp.call(this, 'contextMap', null);

expect(this.provider.contextMap).toEqual({});
});
Expand Down

0 comments on commit 1a798b9

Please sign in to comment.