We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0de645f + e843671 commit 5baca26Copy full SHA for 5baca26
test/tests/p5.EQ.js
@@ -54,13 +54,17 @@ describe('p5.EQ', function () {
54
}, 100);
55
});
56
57
- it("a band's freq value can be changed", function () {
+ it('a bands freq value can be changed', function (done) {
58
const eq = new p5.EQ(8);
59
- eq.bands[0].freq(200);
60
setTimeout(() => {
61
- expect(eq.bands[0].gain()).to.equal(0);
62
- expect(eq.bands[0].freq()).to.equal(200);
63
- }, 100);
+ expect(eq.bands[0].freq()).to.equal(100);
+ eq.bands[0].freq(200);
+ setTimeout(() => {
+ expect(eq.bands[0].gain()).to.equal(0);
64
+ expect(eq.bands[0].freq()).to.equal(200);
65
+ done();
66
+ }, 100);
67
+ }, 50);
68
69
70
it("a band's type can be changed", function () {
0 commit comments