Skip to content

Commit 3bd45da

Browse files
committed
test: update unit test
1 parent e29c0ed commit 3bd45da

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

test/index.test.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,7 @@ describe('zstd', () => {
77

88
it('returns a compressed buffer', async () => {
99
const result = await compress(buffer);
10-
expect(result).to.deep.equal(buffer);
11-
});
12-
});
13-
14-
describe('#decompress', () => {
15-
const buffer = Buffer.from('test');
16-
17-
it('returns the buffer', async () => {
18-
const result = await decompress(buffer);
19-
expect(result).to.deep.equal(buffer);
10+
expect(await decompress(result)).to.deep.equal(buffer);
2011
});
2112
});
2213
});

0 commit comments

Comments
 (0)