Skip to content

Commit

Permalink
fix: test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Dec 3, 2020
1 parent da8eab5 commit 2e09121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/esl-media/test/base-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ describe('ESLMedia: BaseProvider tests', () => {
static readonly providerName = 'test-provider';
}
expect(ESLMediaProviderRegistry.instance.has('test-provider')).toBe(false);
expect(ESLMediaProviderRegistry.instance.getProvider('test-provider')).toBe(null);
expect(ESLMediaProviderRegistry.instance.getProviderByType('test-provider')).toBe(null);
TestProvider.register();
expect(ESLMediaProviderRegistry.instance.has('test-provider')).toBe(true);
expect(ESLMediaProviderRegistry.instance.getProvider('test-provider')).toBe(TestProvider);
expect(ESLMediaProviderRegistry.instance.getProviderByType('test-provider')).toBe(TestProvider);
});

test('Test provider registered via decorator', () => {
Expand Down

0 comments on commit 2e09121

Please sign in to comment.