Skip to content

Commit

Permalink
Update tests to get around Node 12 deepEqual bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rochars committed Jan 8, 2020
1 parent 8ccf2cb commit c898d22
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/dist/get-samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('getSamples() with a mono 16-bit file', function() {
});

it("getSamples() should return the samples", function() {
assert.deepEqual(wav.getSamples(), samples);
assert.deepEqual(wav.getSamples(), new Float64Array(samples));
});
});

Expand All @@ -41,7 +41,7 @@ describe('getSamples() with a 11-bit file', function() {
});

it("getSamples() should return the samples", function() {
assert.deepEqual(wav.getSamples(), samples);
assert.deepEqual(wav.getSamples(), new Float64Array(samples));
});
});

Expand All @@ -62,7 +62,8 @@ describe('getSamples() with a stereo 16-bit file', function() {
});

it("getSamples() should return the samples de-interleaved", function() {
assert.deepEqual(wav.getSamples(), samples);
assert.deepEqual(wav.getSamples()[0], new Float64Array(samples[0]));
assert.deepEqual(wav.getSamples()[1], new Float64Array(samples[1]));
});
});

Expand All @@ -84,6 +85,8 @@ describe('getSamples() with a stereo 16-bit file, interleaved', function() {
});

it("getSamples(true) should return the samples de-interleaved", function() {
assert.deepEqual(wav.getSamples(true), interleavedSamples);
assert.deepEqual(
wav.getSamples(true),
new Float64Array(interleavedSamples));
});
});

0 comments on commit c898d22

Please sign in to comment.