Skip to content

Commit 98f2673

Browse files
committed
checkpoint
1 parent 65beae2 commit 98f2673

File tree

8 files changed

+1011
-422
lines changed

8 files changed

+1011
-422
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
"lint:js": "eslint --cache --fix --cache src test",
2727
"lint:json": "prettier --write codecov.yml package.json",
2828
"prepublishOnly": "pnpm lint && pnpm build",
29-
"pretest": "pnpm build",
3029
"security": "pnpm audit --audit-level=high --prod",
31-
"test": "pnpm install && ava"
30+
"test": "ava test/operator.ts"
3231
},
3332
"files": [
3433
"dist",

test/comment.test.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

test/fixtures/func.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"url( \"/gfx/img/bg.jpg\" )",
88
"url( 'http://domain.com/gfx/img/bg.jpg' )",
99
"url( \"http://domain.com/gfx/img/bg.jpg\" )",
10+
"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=)",
1011
"url(http://123.example.com)",
1112
"url(//123.example.com)",
1213
"rgba( 29, 439 , 29 )",
@@ -20,13 +21,15 @@
2021
"calc(1px + -2vw - 4px)",
2122
"calc(((768px - 100vw) / 2) - 15px)",
2223
"calc(((768px - 100vw)/2) - 15px)",
24+
"calc(var(--mdc-layout-grid-gutter-desktop, 24px)/2*-1)",
2325
"bar(baz(black, 10%), 10%)",
2426
"-webkit-linear-gradient(0)",
2527
"var(--foo)",
2628
"var( --foo)",
2729
"var(--foo )",
2830
"var( --foo )",
2931
"var(--foo, default-value)",
32+
"var(--font-size)/var(--line-height)",
3033
"rotate(72.3deg)",
3134
"rotate(0.5deg)",
3235
"rotate(.5deg)",
@@ -38,7 +41,8 @@
3841
"bat-man(#000)",
3942
"conic-gradient()",
4043
"url( /gfx/img/bg.jpg ",
41-
"src(var(--foo))"
44+
"src(var(--foo))",
45+
"clamp(1.25rem, 0.9423rem + 1.5385vw, 1.75rem)"
4246
],
4347
"throws": [
4448
"url(var(--foo))",

test/fixtures/operator.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"snapshot": ["2 * 10", "2 / 10", "5+ 5", "5px+5px"],
2+
"snapshot": ["2 * 10", "2 / 10", "5+ 5", "5px+5px", "++(1)"],
33
"throws": ["10 % modulo"]
44
}

0 commit comments

Comments
 (0)