@@ -226,7 +226,7 @@ describe('gulp-clean-css: base functionality', function () {
226226 . pipe ( cleanCSS ( { debug : true } , function ( details ) {
227227 expect ( details . warnings ) . to . exist &&
228228 expect ( details . warnings . length ) . to . equal ( 1 ) &&
229- expect ( details . warnings [ 0 ] ) . to . equal ( 'Missing \'}\' at 1:14.' ) ;
229+ expect ( details . warnings [ 0 ] ) . to . equal ( 'Missing \'}\' at fixtures/test.css: 1:14.' ) ;
230230 } ) )
231231 . on ( 'data' , function ( file ) {
232232 i += 1 ;
@@ -273,10 +273,10 @@ describe('gulp-clean-css: rebase', function () {
273273 . on ( 'data' , function ( file ) {
274274
275275 let expected = `
276- p.insub_same{background:url(insub.png)}
277- p.insub_child{background:url(child/child.png)}
278- p.insub_parent{background:url(.. /parent.png)}
279- p.insub_other{background:url(.. /othersub/inother.png)}
276+ p.insub_same{background:url(test/fixtures/rebasing/subdir/ insub.png)}
277+ p.insub_child{background:url(test/fixtures/rebasing/subdir/ child/child.png)}
278+ p.insub_parent{background:url(test/fixtures/rebasing /parent.png)}
279+ p.insub_other{background:url(test/fixtures/rebasing /othersub/inother.png)}
280280 p.insub_absolute{background:url(/inroot.png)}` ;
281281
282282 let actual = file . contents . toString ( ) ;
@@ -288,15 +288,15 @@ describe('gulp-clean-css: rebase', function () {
288288
289289 it ( 'should by rebase files with target specified' , function ( done ) {
290290 gulp . src ( [ 'test/fixtures/rebasing/subdir/insub.css' ] )
291- . pipe ( cleanCSS ( { rebaseTo : '.. ' } ) )
291+ . pipe ( cleanCSS ( { rebaseTo : 'test ' } ) )
292292 . on ( 'data' , function ( file ) {
293293
294294 let expected = `
295- p.insub_same{background:url(.. /insub.png)}
296- p.insub_child{background:url(.. /child/child.png)}
297- p.insub_parent{background:url(../.. /parent.png)}
298- p.insub_other{background:url(../.. /othersub/inother.png)}
299- p.insub_absolute{background:url(/inroot.png)}` ;
295+ p.insub_same{background:url(fixtures/rebasing/subdir /insub.png)}
296+ p.insub_child{background:url(fixtures/rebasing/subdir /child/child.png)}
297+ p.insub_parent{background:url(fixtures/rebasing /parent.png)}
298+ p.insub_other{background:url(fixtures/rebasing /othersub/inother.png)}
299+ p.insub_absolute{background:url(/inroot.png)}` ;
300300
301301 let actual = file . contents . toString ( ) ;
302302
0 commit comments