Update stuff
This commit is contained in:
parent
0254e42b9c
commit
553ba9db9a
40 changed files with 7343 additions and 717 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue