Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dlepaux committed Sep 23, 2018
1 parent a8f3120 commit 65e7dc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@ class RealTimeBPMAnalyzer {
pushTime: 2000,
pushCallback: (err, bpm) => {
console.log('bpm', bpm);
<<<<<<< HEAD
},
onBpmStabilized: (thresold) => {
this.clearValidPeaks(thresold);
||||||| parent of acaddf8... fix tests with web-audio-engine <3
=======
},
webAudioAPI: {
OfflineAudioContext: typeof window == 'object' && (window.OfflineAudioContext || window.webkitOfflineAudioContext);
>>>>>>> acaddf8... fix tests with web-audio-engine <3
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/index_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('RealTime BPM Analyzer', () => {
});

it('Test callback (second param) without onLoop', (done) => {
utils.loopOnThresolds(null, (object) => {
utils.loopOnThresolds(() => {}, (object) => {
expect(JSON.stringify(object)).to.be.equal('{}');
done();
});
Expand Down

0 comments on commit 65e7dc9

Please sign in to comment.