Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(browser): Migrate unit tests from Chai and Karma to Jest (#3965)
- Loading branch information
1 parent
d3ca7a8
commit 3f74f82
Showing
15 changed files
with
634 additions
and
744 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
import { expect } from 'chai'; | ||
|
||
import { BrowserBackend } from '../../src/backend'; | ||
|
||
let backend: BrowserBackend; | ||
|
||
describe('BrowserBackend', () => { | ||
describe('sendEvent()', () => { | ||
it('should use NoopTransport', async () => { | ||
it('should use NoopTransport', () => { | ||
backend = new BrowserBackend({}); | ||
expect(backend.getTransport().constructor.name).to.equal('NoopTransport'); | ||
expect(backend.getTransport().constructor.name).toBe('NoopTransport'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.