1
0
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:
Denis Demchenko
2018-07-04 23:09:33 +03:00
parent 48638e7363
commit e759592884
2 changed files with 22 additions and 6 deletions

View File

@@ -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);
});