Skip to content

Commit

Permalink
Test: Replace expect.js with unexpected.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Nov 18, 2013
1 parent e28f472 commit 08dfabb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"mocha": "=1.7.3",
"expect.js": "=0.2.0"
"unexpected": "=1.0.11"
},
"scripts": {
"prepublish": "mocha",
Expand Down
10 changes: 5 additions & 5 deletions test/PngQuant.js
@@ -1,4 +1,4 @@
var expect = require('expect.js'),
var expect = require('unexpected'),
PngQuant = require('../lib/PngQuant'),
Path = require('path'),
fs = require('fs');
Expand All @@ -14,8 +14,8 @@ describe('PngQuant', function () {
})
.on('end', function () {
var resultPngBuffer = Buffer.concat(chunks);
expect(resultPngBuffer.length).to.be.greaterThan(0);
expect(resultPngBuffer.length).to.be.lessThan(8285);
expect(resultPngBuffer.length, 'to be greater than', 0);
expect(resultPngBuffer.length, 'to be less than', 8285);
done();
})
.on('error', done);
Expand All @@ -42,8 +42,8 @@ describe('PngQuant', function () {
})
.on('end', function () {
var resultPngBuffer = Buffer.concat(chunks);
expect(resultPngBuffer.length).to.be.greaterThan(0);
expect(resultPngBuffer.length).to.be.lessThan(8285);
expect(resultPngBuffer.length, 'to be greater than', 0);
expect(resultPngBuffer.length, 'to be less than', 8285);
done();
});

Expand Down

0 comments on commit 08dfabb

Please sign in to comment.