Skip to content

Commit 9de3f8b

Browse files
committed
minor tweaks
1 parent 709c0c1 commit 9de3f8b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tasks/postcss.js

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ module.exports = (grunt) => {
4545
}
4646

4747
if (typeof options.map.annotation === 'string') {
48-
//annotation = path.relative(path.dirname(to), getSourcemapPath(to));
4948
annotation = path.relative(path.dirname(to), getSourcemapPath(to)).replace(/\\/g, '/');
5049
}
5150

test/test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const fs = require('fs');
2-
const { readFile, access } = fs.promises;
1+
const { readFile, access } = require('fs').promises;
32

43
/*
54
======== A Handy Little Nodeunit Reference ========
@@ -146,8 +145,9 @@ exports.gruntPostcss = {
146145

147146
writeDest: async(test) => {
148147
const checkExists = await fileExists('tmp/doWriteDest.css');
149-
const checkNoExists = await fileExists('tmp/noWriteDest.css');
150148
test.ok(checkExists);
149+
150+
const checkNoExists = await fileExists('tmp/noWriteDest.css');
151151
test.ok(!checkNoExists);
152152
test.done();
153153
},

0 commit comments

Comments
 (0)