mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
Fix getPlatformType, write tests
This commit is contained in:
@@ -72,3 +72,9 @@ test('Parser.check should make complex comparison', (t) => {
|
||||
opera: '>42',
|
||||
}), true);
|
||||
});
|
||||
|
||||
test('Parser.is should pass', (t) => {
|
||||
t.is(parser.is('opera'), true);
|
||||
t.is(parser.is('desktop'), true);
|
||||
t.is(parser.is('macos'), true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user