Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
checkpoint
  • Loading branch information
shellscape committed Jul 14, 2022
commit 98f267374150b38d5fee52c0e10b4a27df2b4562
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
"lint:js": "eslint --cache --fix --cache src test",
"lint:json": "prettier --write codecov.yml package.json",
"prepublishOnly": "pnpm lint && pnpm build",
"pretest": "pnpm build",
"security": "pnpm audit --audit-level=high --prod",
"test": "pnpm install && ava"
"test": "ava test/operator.ts"
},
"files": [
"dist",
Expand Down
38 changes: 0 additions & 38 deletions test/comment.test.js

This file was deleted.

6 changes: 5 additions & 1 deletion test/fixtures/func.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"url( \"/gfx/img/bg.jpg\" )",
"url( 'http://domain.com/gfx/img/bg.jpg' )",
"url( \"http://domain.com/gfx/img/bg.jpg\" )",
"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=)",
"url(http://123.example.com)",
"url(//123.example.com)",
"rgba( 29, 439 , 29 )",
Expand All @@ -20,13 +21,15 @@
"calc(1px + -2vw - 4px)",
"calc(((768px - 100vw) / 2) - 15px)",
"calc(((768px - 100vw)/2) - 15px)",
"calc(var(--mdc-layout-grid-gutter-desktop, 24px)/2*-1)",
"bar(baz(black, 10%), 10%)",
"-webkit-linear-gradient(0)",
"var(--foo)",
"var( --foo)",
"var(--foo )",
"var( --foo )",
"var(--foo, default-value)",
"var(--font-size)/var(--line-height)",
"rotate(72.3deg)",
"rotate(0.5deg)",
"rotate(.5deg)",
Expand All @@ -38,7 +41,8 @@
"bat-man(#000)",
"conic-gradient()",
"url( /gfx/img/bg.jpg ",
"src(var(--foo))"
"src(var(--foo))",
"clamp(1.25rem, 0.9423rem + 1.5385vw, 1.75rem)"
],
"throws": [
"url(var(--foo))",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/operator.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"snapshot": ["2 * 10", "2 / 10", "5+ 5", "5px+5px"],
"snapshot": ["2 * 10", "2 / 10", "5+ 5", "5px+5px", "++(1)"],
"throws": ["10 % modulo"]
}
Loading