Skip to content

Commit 5baca26

Browse files
authored
Merge pull request #720 from Abhijay007/Abhijay007-Tests/EQ-test
(Chore) : Fixed merge conflicts in "fixing EQ test"
2 parents 0de645f + e843671 commit 5baca26

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/tests/p5.EQ.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,17 @@ describe('p5.EQ', function () {
5454
}, 100);
5555
});
5656

57-
it("a band's freq value can be changed", function () {
57+
it('a bands freq value can be changed', function (done) {
5858
const eq = new p5.EQ(8);
59-
eq.bands[0].freq(200);
6059
setTimeout(() => {
61-
expect(eq.bands[0].gain()).to.equal(0);
62-
expect(eq.bands[0].freq()).to.equal(200);
63-
}, 100);
60+
expect(eq.bands[0].freq()).to.equal(100);
61+
eq.bands[0].freq(200);
62+
setTimeout(() => {
63+
expect(eq.bands[0].gain()).to.equal(0);
64+
expect(eq.bands[0].freq()).to.equal(200);
65+
done();
66+
}, 100);
67+
}, 50);
6468
});
6569

6670
it("a band's type can be changed", function () {

0 commit comments

Comments
 (0)