Skip to content

Commit 20b5f5c

Browse files
committed
add a baseline query test
1 parent 028b73a commit 20b5f5c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/compat-tools/targets-parser.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ deepEqual(targetsParser('ie 11, chrome 56, ios 12.2'), new Map([
77
['ios', '12.2-12.5'],
88
]), 'browserslist');
99

10+
deepEqual(targetsParser('baseline 2022 or not and_chr <= 999 or not and_ff <= 999 or ios 15.3 or ie 11'), new Map([
11+
['chrome', '108'],
12+
['edge', '108'],
13+
['firefox', '108'],
14+
['ie', '11'],
15+
['ios', '15.2-15.3'],
16+
['safari', '16.0'],
17+
]), 'browserslist with baseline');
18+
1019
deepEqual(targetsParser({
1120
ie: 11,
1221
chrome: 56,

0 commit comments

Comments
 (0)