1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

Change Parser.check to Parser.compare

This commit is contained in:
Denis Demchenko
2018-07-04 22:43:57 +03:00
parent 0c1564f1cd
commit 48638e7363
3 changed files with 12 additions and 11 deletions

View File

@@ -57,12 +57,12 @@ test('Skip parsing shouldn\'t parse', (t) => {
t.deepEqual((new Parser(UA, true)).getResult(), {});
});
test('Parser.check should make simple check', (t) => {
t.is(parser.check({ opera: '>42' }), true);
test('Parser.check should make simple comparison', (t) => {
t.is(parser.compare({ opera: '>42' }), true);
});
test('Parser.check should make simple check', (t) => {
t.is(parser.check({
test('Parser.check should make complex comparison', (t) => {
t.is(parser.compare({
macos: {
safari: '>11',
},