File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,16 @@ describe('detectBrowser', () => {
49
49
expect ( browserDetails . version ) . toEqual ( 95 ) ;
50
50
} ) ;
51
51
52
- it ( 'detects Chrome if navigator.userAgentData exist ' , ( ) => {
52
+ it ( 'detects Chrome if navigator.userAgentData exists ' , ( ) => {
53
53
navigator . userAgentData = { brands : [ { brand : 'Chromium' , version : 102 } ] } ;
54
54
// Use the wrong UA string for Firefox.
55
55
navigator . userAgent = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; ' +
56
56
'rv:44.0) Gecko/20100101 Firefox/44.0' ;
57
57
navigator . mozGetUserMedia = function ( ) { } ;
58
58
59
59
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 ) ;
62
62
} ) ;
63
63
64
64
it ( 'detects Safari if window.RTCPeerConnection exists' , ( ) => {
You can’t perform that action at this time.
0 commit comments