Skip to content

Commit

Permalink
fix rework.inline() test
Browse files Browse the repository at this point in the history
for whatever reason, the base64 string was incorrect. closes #127
  • Loading branch information
jonathanong committed Dec 14, 2013
1 parent c72f8be commit 27543fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/inline.out.css
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,3 @@
.dot { .dot {
background: url("data:image/png;base64,AAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAaHwDAgEAAACglW0AAQAAAO4HAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAA==") no-repeat; background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==") no-repeat;
} }
46 changes: 23 additions & 23 deletions test/rework.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -243,29 +243,29 @@ describe('rework', function(){
}) })
}) })


//describe('.inline(dir)', function(){ describe('.inline(dir)', function(){
// it('should inline images', function(){ it('should inline images', function(){
// rework(fixture('inline')) rework(fixture('inline'))
// .use(rework.inline('lib/', 'test/fixtures')) .use(rework.inline('lib/', 'test/fixtures'))
// .toString() .toString()
// .should.equal(fixture('inline.out')); .should.equal(fixture('inline.out'));
// }) })
//
// it('should accept dirs in array', function(){ it('should accept dirs in array', function(){
// rework(fixture('inline')) rework(fixture('inline'))
// .use(rework.inline(['lib/', 'test/fixtures'])) .use(rework.inline(['lib/', 'test/fixtures']))
// .toString() .toString()
// .should.equal(fixture('inline.out')); .should.equal(fixture('inline.out'));
// }) })
//
// it('should throw error on nonexistent file', function(){ it('should throw error on nonexistent file', function(){
// (function(){ (function(){
// rework(fixture('inline')) rework(fixture('inline'))
// .use(rework.inline()) .use(rework.inline())
// .toString() .toString()
// }).should.throw(/dot.png/) }).should.throw(/dot.png/)
// }) })
//}) })


describe('.toString() compress option', function(){ describe('.toString() compress option', function(){
it('should compress the output', function(){ it('should compress the output', function(){
Expand Down

0 comments on commit 27543fd

Please sign in to comment.