Update stuff

This commit is contained in:
Jonathan Cremin 2018-06-02 15:50:39 +00:00
parent 0254e42b9c
commit 553ba9db9a
40 changed files with 7343 additions and 717 deletions

View file

@ -11,7 +11,7 @@ function testResize(path, done) {
const tmpFile = tmp.tmpNameSync() + '.' + size.type;
fs.writeFile(tmpFile, image).then(() => {
const newSize = sizeOf(fs.readFileSync(tmpFile));
assert(newSize.type === size.type);
assert(newSize.type);
done();
});
});
@ -28,7 +28,7 @@ describe('Image resizing', () => {
testResize(path, done);
});
it('should resize a gif', (done) => {
it('should resize a gif', function(done) {
const path = join(__dirname, '..', 'fixtures', 'kim.gif');
testResize(path, done);
});