1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Fixed tests

This commit is contained in:
Oliver foster 2019-12-19 11:26:52 +00:00
parent 3cdfd7de02
commit 64bbd2a9b1

View File

@ -21,7 +21,7 @@ test('getFirstMatch', (t) => {
});
test('getSecondMatch', (t) => {
const matchedVersion = getSecondMatch(/version\/(\S+)/i, 'Chrome Version/11.11.11 Chrome Version/22.22.22');
const matchedVersion = getSecondMatch(/version\/(\S+)/ig, 'Chrome Version/11.11.11 Chrome Version/22.22.22');
t.is(matchedVersion, '22.22.22');
});
@ -98,7 +98,7 @@ test('map', (t) => {
test('find', (t) => {
const result = find([1,2], (value) => value==2);
t.is(result, 1);
t.is(result, 2);
});
test('assign', (t) => {