Skip to content

Commit 2989d73

Browse files
committed
update unit test
1 parent 4973efe commit 2989d73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/detectBrowser.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ describe('detectBrowser', () => {
4949
expect(browserDetails.version).toEqual(95);
5050
});
5151

52-
it('detects Chrome if navigator.userAgentData exist', () => {
52+
it('detects Chrome if navigator.userAgentData exists', () => {
5353
navigator.userAgentData = {brands: [{brand: 'Chromium', version: 102}]};
5454
// Use the wrong UA string for Firefox.
5555
navigator.userAgent = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; ' +
5656
'rv:44.0) Gecko/20100101 Firefox/44.0';
5757
navigator.mozGetUserMedia = function() {};
5858

5959
const browserDetails = detectBrowser(window);
60-
expect(browserDetails.browser).to.equal('chrome');
61-
expect(browserDetails.version).to.equal(102);
60+
expect(browserDetails.browser).toEqual('chrome');
61+
expect(browserDetails.version).toEqual(102);
6262
});
6363

6464
it('detects Safari if window.RTCPeerConnection exists', () => {

0 commit comments

Comments
 (0)