Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Co-authored-by: Shogo Sensui <shogosensui@gmail.com>
  • Loading branch information
niksy and 1000ch committed Nov 29, 2021
1 parent a12267a commit 30c7986
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import {Buffer} from 'node:buffer';
import {promises as fs} from 'node:fs';
import {fileURLToPath} from 'node:url';
import isGif from 'is-gif';
import test from 'ava';
import imageminGifsicle from './index.js';

test('Buffer', async t => {
const buf = await fs.readFile(fileURLToPath(new URL('fixture.gif', import.meta.url)));
const buf = await fs.readFile(new URL('fixture.gif', import.meta.url));
const data = await imageminGifsicle()(buf);

t.true(data.length < buf.length);
Expand Down

0 comments on commit 30c7986

Please sign in to comment.