Skip to content

Commit 84122e7

Browse files
merge
1 parent a66aa0e commit 84122e7

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

test/tests/p5.Gain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('p5.Gain', function () {
2828
});
2929
});
3030
describe('connect, disconnect', function () {
31-
it('can connect to empty node', function () {
31+
it('connects to p5.soundOut when no arguments are provided', function () {
3232
gain.connect();
3333
});
3434
it('can connect with or without input property', function () {

test/tests/p5.Listener3d.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ describe('p5.Listener3D', function () {
44
let listener3d;
55
it('can be created', function () {
66
listener3d = new p5.Listener3D();
7-
console.log(listener3d);
87
expect(listener3d).to.have.property('ac');
98
expect(listener3d.listener).to.have.property('forwardX');
109
expect(listener3d.listener).to.have.property('positionY');

test/tests/p5.Metro.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('p5.Metro', function () {
3636
}, 1000);
3737
});
3838

39-
it('can be started and stopped with dealy', function (done) {
39+
it('can be started and stopped with delay', function (done) {
4040
let ticks;
4141
metro.setBPM(600);
4242
metro.start(0.1);
@@ -45,7 +45,7 @@ describe('p5.Metro', function () {
4545
metro.stop(0.2);
4646
expect(ticks).to.not.equal(0);
4747
setTimeout(() => {
48-
expect(metro.metroTicks).to.not.equal(ticks);
48+
expect(metro.metroTicks).to.be.above(ticks);
4949
}, 100);
5050
setTimeout(() => {
5151
ticks = metro.metroTicks;

test/tests/p5.PeakDetect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
const expect = chai.expect;
22

33
describe('p5.PeakDetect', function () {
4-
it('can be initalized without any arguemts', function () {
4+
it('can be initialized without any arguments', function () {
55
const peakDetect = new p5.PeakDetect();
66
expect(peakDetect.cutoff).to.equal(0);
77
expect(peakDetect.framesSinceLastPeak).to.equal(0);
88
expect(peakDetect.energy).to.equal(0);
99
expect(peakDetect.isDetected).to.equal(false);
1010
});
11-
it('can be initalized with arguemts', function () {
11+
it('can be initialized with arguemts', function () {
1212
const peakDetect = new p5.PeakDetect(40, 120, 0.8, 20);
1313
expect(peakDetect.f1).to.equal(40);
1414
expect(peakDetect.f2).to.equal(120);

test/tests/p5.Pulse.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ describe('p5.Pulse', function () {
1818
let pulse = new p5.Pulse(220, 0.4);
1919
expect(pulse.w).to.equal(0.4);
2020
expect(pulse.f).to.equal(220);
21-
console.log(pulse);
2221
expect(pulse.dNode.delayTime.value).to.be.approximately(0.0009, 0.00001);
2322
expect(pulse.dcGain.gain.value).to.be.approximately(0.17, 0.001);
2423
});
@@ -46,7 +45,7 @@ describe('p5.Pulse', function () {
4645
}, 500);
4746
expect(pulse.started).to.be.true;
4847
expect(pulse.osc2.started).to.be.true;
49-
pulse.stop(221, 0.1);
48+
pulse.stop();
5049
expect(pulse.started).to.be.false;
5150
expect(pulse.osc2.started).to.be.false;
5251
});

test/tests/p5.SoundLoop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('p5.SoundLoop', function () {
4848
done();
4949
}, 1000);
5050
});
51-
it('can be started and stopped with dealy', function (done) {
51+
it('can be started and stopped with delay', function (done) {
5252
let count = 0;
5353
let ticks;
5454
let sloop = new p5.SoundLoop(() => count++, '6n');

0 commit comments

Comments
 (0)