Skip to content

Commit fe52146

Browse files
Fixing tests
1 parent 4aab5f2 commit fe52146

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

.tape.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,6 @@ module.exports = {
2121
processOptions,
2222
source: 'basic.scss',
2323
},
24-
'basic:mixed': {
25-
message: 'supports mixed (postcss-unroot, postcss-sass) usage',
26-
plugin: require('postcss')([
27-
// In the previous test, unroot wouldn't do anything.
28-
// I'm pretty sure that is a bug, so I changed the expected css file
29-
require('postcss-unroot'),
30-
require('.'),
31-
]),
32-
processOptions,
33-
source: 'basic.scss',
34-
},
3524
'imports': {
3625
message: 'supports imports usage',
3726
plugin: require('postcss')(

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"source-map": "~0.7.3"
3939
},
4040
"peerDependencies": {
41-
"postcss": "^8.2.4"
41+
"postcss": "^8.4.6"
4242
},
4343
"devDependencies": {
4444
"@babel/core": "^7.17.2",
@@ -48,11 +48,10 @@
4848
"echint": "^4.0.2",
4949
"eslint": "^8.9.0",
5050
"eslint-config-dev": "2.0.0",
51+
"postcss": "^8.4.6",
5152
"postcss-import": "^14.0.2",
5253
"postcss-scss": "^4.0.3",
5354
"postcss-tape": "6.0.1",
54-
"postcss-unroot": "^1.0.2",
55-
"pre-commit": "^1.2.2",
5655
"rollup": "^2.67.2"
5756
},
5857
"eslintConfig": {
@@ -92,7 +91,8 @@
9291
"root": true
9392
},
9493
"postcssConfig": {
95-
"config": ".tape.js"
94+
"config": ".tape.js",
95+
"plugin": "./dist/index.cjs"
9696
},
9797
"keywords": [
9898
"postcss",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ const plugin = (opts = {}) => {
8989
data: postCSS,
9090
importer(id, parentId, done) {
9191
const doneWrap = (importerResult) => {
92-
const file =
93-
importerResult && importerResult.file;
92+
const file = importerResult && importerResult.file;
93+
9494
if (file) {
9595
const parent = pathResolve(parentId);
9696

0 commit comments

Comments
 (0)