Skip to content

Commit

Permalink
add tests for empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Dec 28, 2023
1 parent b1c8d8c commit 3dbff7f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
"@rollup/plugin-babel": "^6.0.4",
"@babel/eslint-parser": "^7.23.3",
"eslint": "^8.56.0",
"eslint-config-dev": "3.3.1",
"eslint-config-dev": "^3.3.1",
"postcss": "^8.4.32",
"postcss-import": "^15.1.0",
"@csstools/postcss-tape": "4.1.0",
"@csstools/postcss-tape": "^4.1.1",
"rollup": "^4.9.1"
},
"eslintConfig": {
Expand Down
4 changes: 4 additions & 0 deletions test/_tape.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ postcssTape(plugin)({
},
source: 'basic.scss',
},
'empty': {
message: 'supports empty files',
source: 'empty.scss',
},
'imports': {
message: 'supports imports usage',
source: 'imports.scss',
Expand Down
Empty file added test/components/empty.scss
Empty file.
Empty file added test/empty.expect.css
Empty file.
Empty file added test/empty.scss
Empty file.
1 change: 1 addition & 0 deletions test/imports.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import "components/vars";
@import "components/page";
@import "components/empty";

0 comments on commit 3dbff7f

Please sign in to comment.