Skip to content

Commit

Permalink
Fix spec for contextMap default value
Browse files Browse the repository at this point in the history
  • Loading branch information
armanozak committed Apr 8, 2019
1 parent 495b2a0 commit 38c495c
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 38c495c

Please sign in to comment.