Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 6, 2012
1 parent 4e5fb7f commit bde3afc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
3 changes: 1 addition & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ ul {
}
```

<<<<<<< HEAD
### .url(callback)

Map `url()` calls, useful for inlining images as data-uris, converting
Expand All @@ -188,7 +187,7 @@ function rewrite(url) {
rework(str)
.use(rework.url(rewrite))
.toString()
=======

### .vars()

Add variable support. Note that this does not cascade like the CSS variable
Expand Down
3 changes: 0 additions & 3 deletions lib/rework.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,5 @@ exports.prefixSelectors = require('./plugins/prefix-selectors');
exports.keyframes = require('./plugins/keyframes');
exports.opacity = require('./plugins/opacity');
exports.at2x = require('./plugins/at2x');
<<<<<<< HEAD
exports.url = require('./plugins/url');
=======
exports.vars = require('./plugins/vars');
>>>>>>> add/vars
18 changes: 9 additions & 9 deletions test/rework.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ describe('rework', function(){
})
})

<<<<<<< HEAD
describe('.url(fn)', function(){
it('should map urls', function(){
function rewrite(url) {
Expand All @@ -99,20 +98,21 @@ describe('rework', function(){
})
})

describe('.toString() compress option', function(){
it('should compress the output', function(){
rework('body { color: red; }')
.toString({ compress: true })
.should.equal('body{color:red}');
=======
describe.only('.vars()', function(){
describe('.vars()', function(){
it('should add variable support', function(){
rework(fixture('vars'))
.vendors(vendors)
.use(rework.vars())
.toString()
.should.equal(fixture('vars.out'));
>>>>>>> add/vars
})
})

describe('.toString() compress option', function(){
it('should compress the output', function(){
rework('body { color: red; }')
.toString({ compress: true })
.should.equal('body{color:red}');
})
})
})

0 comments on commit bde3afc

Please sign in to comment.