File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33const path = require ( 'path' ) ;
44const pluginWarnAboutFoo = require ( './fixtures/plugin-warn-about-foo' ) ;
55const printConfig = require ( '../printConfig' ) ;
6+ const replaceBackslashes = require ( './replaceBackslashes' ) ;
67
78it ( 'printConfig uses getConfigForFile to retrieve the config' , ( ) => {
8- const filepath = path . join ( __dirname , 'fixtures/getConfigForFile/a/b/foo.css' ) ;
9+ const filepath = replaceBackslashes (
10+ path . join ( __dirname , 'fixtures/getConfigForFile/a/b/foo.css' ) ,
11+ ) ;
912
1013 return printConfig ( {
1114 files : [ filepath ] ,
1215 } ) . then ( ( result ) => {
1316 expect ( result ) . toEqual ( {
14- plugins : [ path . join ( __dirname , '/fixtures/plugin-warn-about-foo.js' ) ] ,
17+ plugins : [ replaceBackslashes ( path . join ( __dirname , '/fixtures/plugin-warn-about-foo.js' ) ) ] ,
1518 rules : {
1619 'block-no-empty' : [ true ] ,
1720 'plugin/warn-about-foo' : [ 'always' ] ,
You can’t perform that action at this time.
0 commit comments