@@ -26,32 +26,12 @@ const fileExists = async(file) => {
26
26
await access ( file ) ;
27
27
return true ;
28
28
} catch ( error ) {
29
- console . log ( error ) ;
30
29
return false ;
31
30
}
32
31
} ;
33
32
34
33
exports . gruntPostcss = {
35
34
36
- mapAnnotationPath : async ( test ) => {
37
- const actual = {
38
- css : await readFile ( 'tmp/mapAnnotationPath.css' , 'utf8' ) ,
39
- map : await readFile ( 'tmp/maps/mapAnnotationPath.css.map' , 'utf8' ) ,
40
- } ;
41
-
42
- const expected = {
43
- css : await readFile ( 'test/expected/mapAnnotationPath.css' , 'utf8' ) ,
44
- map : await readFile ( 'test/expected/maps/mapAnnotationPath.css.map' , 'utf8' ) ,
45
- } ;
46
-
47
- test . strictEqual ( actual . css , expected . css ) ;
48
- test . strictEqual ( actual . map , expected . map ) ;
49
-
50
- const checkExists = await fileExists ( 'tmp/mapAnnotationPath.css.map' ) ;
51
- test . ok ( ! checkExists ) ;
52
- test . done ( ) ;
53
- } ,
54
-
55
35
defaults : async ( test ) => {
56
36
const actual = {
57
37
css : await readFile ( 'tmp/defaults.css' , 'utf8' ) ,
@@ -116,6 +96,25 @@ exports.gruntPostcss = {
116
96
test . done ( ) ;
117
97
} ,
118
98
99
+ mapAnnotationPath : async ( test ) => {
100
+ const actual = {
101
+ css : await readFile ( 'tmp/mapAnnotationPath.css' , 'utf8' ) ,
102
+ map : await readFile ( 'tmp/maps/mapAnnotationPath.css.map' , 'utf8' ) ,
103
+ } ;
104
+
105
+ const expected = {
106
+ css : await readFile ( 'test/expected/mapAnnotationPath.css' , 'utf8' ) ,
107
+ map : await readFile ( 'test/expected/maps/mapAnnotationPath.css.map' , 'utf8' ) ,
108
+ } ;
109
+
110
+ test . strictEqual ( actual . css , expected . css ) ;
111
+ test . strictEqual ( actual . map , expected . map ) ;
112
+
113
+ const checkExists = await fileExists ( 'tmp/mapAnnotationPath.css.map' ) ;
114
+ test . ok ( ! checkExists ) ;
115
+ test . done ( ) ;
116
+ } ,
117
+
119
118
diff : async ( test ) => {
120
119
const actual = {
121
120
css : await readFile ( 'tmp/diff.css' , 'utf8' ) ,
0 commit comments