Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Mar 28, 2019
1 parent b91369e commit 4c961b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const env = {
* @static
* @member {Boolean} module:utils/env~env#isSafari
*/
isSafari: isSafari( userAgent ),
isSafari: isSafari( userAgent )
};

export default env;
Expand Down
3 changes: 3 additions & 0 deletions tests/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ describe( 'Env', () => {
expect( isSafari( toLowerCase(
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15'
) ) ).to.be.true;

expect( isSafari( toLowerCase(
'Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1'
) ) ).to.be.true;
Expand All @@ -122,9 +123,11 @@ describe( 'Env', () => {
expect( isSafari( toLowerCase(
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36'
) ) ).to.be.false;

expect( isSafari( toLowerCase(
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0'
) ) ).to.be.false;

expect( isSafari( toLowerCase(
'Mozilla/5.0 (Linux; Android 7.1; Mi A1 Build/N2G47H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Mobile Safari/537.36'
) ) ).to.be.false;
Expand Down

0 comments on commit 4c961b8

Please sign in to comment.