@@ -226,7 +226,7 @@ describe('gulp-clean-css: base functionality', function () {
226
226
. pipe ( cleanCSS ( { debug : true } , function ( details ) {
227
227
expect ( details . warnings ) . to . exist &&
228
228
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.' ) ;
230
230
} ) )
231
231
. on ( 'data' , function ( file ) {
232
232
i += 1 ;
@@ -273,10 +273,10 @@ describe('gulp-clean-css: rebase', function () {
273
273
. on ( 'data' , function ( file ) {
274
274
275
275
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)}
280
280
p.insub_absolute{background:url(/inroot.png)}` ;
281
281
282
282
let actual = file . contents . toString ( ) ;
@@ -288,15 +288,15 @@ describe('gulp-clean-css: rebase', function () {
288
288
289
289
it ( 'should by rebase files with target specified' , function ( done ) {
290
290
gulp . src ( [ 'test/fixtures/rebasing/subdir/insub.css' ] )
291
- . pipe ( cleanCSS ( { rebaseTo : '.. ' } ) )
291
+ . pipe ( cleanCSS ( { rebaseTo : 'test ' } ) )
292
292
. on ( 'data' , function ( file ) {
293
293
294
294
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)}` ;
300
300
301
301
let actual = file . contents . toString ( ) ;
302
302
0 commit comments