You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
229 B
8 lines
229 B
7 years ago
|
import test from 'ava';
|
||
|
import { getFirstMatch } from '../../src/utils';
|
||
|
|
||
|
test('getFirstMatch', t => {
|
||
|
const matchedVersion = getFirstMatch(/version\/(\S+)/i, 'Chrome Version/11.11.11');
|
||
|
t.is(matchedVersion, '11.11.11');
|
||
|
});
|