Skip to content

Commit

Permalink
Use unexpected-color.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jun 29, 2015
1 parent 25ceea3 commit 5aadf5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"node-sass": "3.2.0",
"sinon": "1.12.2",
"unexpected": "8.0.0",
"unexpected-color": "1.0.0",
"unexpected-dom": "1.0.0",
"unexpected-sinon": "6.1.3"
},
Expand Down
2 changes: 1 addition & 1 deletion test/transforms/buildProduction.js
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ describe('buildProduction', function () {
expect(assetGraph.findAssets({type: 'Svg'})[0].text, 'when parsed as XML', 'queried for', 'path', 'to satisfy', [
{
attributes: {
stroke: expect.it('to equal', '#ff0000').or('to equal', 'red').or('to equal', '#f00') // optimized by svgo if available
stroke: expect.it('to be colored', 'red')
}
}
]);
Expand Down
2 changes: 1 addition & 1 deletion test/transforms/processImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ describe('processImages', function () {
expect(assetGraph.findAssets({type: 'Svg'})[0].text, 'when parsed as XML', 'queried for', 'path', 'to satisfy', [
{
attributes: {
stroke: '#ff0000'
stroke: expect.it('to be colored', 'red')
}
}
]);
Expand Down
1 change: 1 addition & 0 deletions test/unexpected-with-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ module.exports = require('unexpected')
.clone()
.installPlugin(require('unexpected-sinon'))
.installPlugin(require('unexpected-dom'))
.installPlugin(require('unexpected-color'))
.installPlugin(require('assetgraph/test/unexpectedAssetGraph'));

0 comments on commit 5aadf5c

Please sign in to comment.