Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Dec 5, 2020
1 parent 23c3e24 commit eab3e4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/compress.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,13 @@ describe("compress", () => {
expect(res1.length).toBeGreaterThan(500);

const res2 = await compress2(source, dest, options);
expect(res2.size).toEqual(res1.length);
expect(res2.length).toEqual(res1.length);

const res3 = compressSync(source, options);
expect(res3.length).toEqual(res1.length);

const res4 = await compress2(source, options);
expect(res4.size).toEqual(res1.length);
expect(res4.length).toEqual(res1.length);
});

function generateRandomData(length) {
Expand All @@ -263,12 +263,12 @@ describe("compress", () => {
expect(res1.length).toBeGreaterThan(500);

const res2 = await compress2(source1, dest, options);
expect(res2.size).toEqual(res1.length);
expect(res2.length).toEqual(res1.length);

const res3 = compressSync(source1, options);
expect(res3.length).toEqual(res1.length);

const res4 = await compress2(source1, options);
expect(res4.size).toEqual(res1.length);
expect(res4.length).toEqual(res1.length);
});
});

0 comments on commit eab3e4e

Please sign in to comment.