Skip to content

Conversation

iRohitSingh
Copy link
Contributor

@therewasaguy The freq of note 'A2' is 55 but we are checking in test 110.

we can test 110 by
monoSynth.oscillator.freq(110,0.001);
and then in expect we can do
expect(monoSynth.oscillator.freq().value).to.equal(110);

but I think 55 is also good
This test fails sometime because it compares the default value to 55 if you run the test multiple times I think it is due to Mocha running the function rightaway and our frequency is not set yet.

screenshot
Screenshot from 2021-04-19 02-05-57
of the passing test

@iRohitSingh
Copy link
Contributor Author

iRohitSingh commented Apr 28, 2021

@therewasaguy fixed and test passes. Ready for merge :)

@iRohitSingh
Copy link
Contributor Author

@therewasaguy can you please!! review this.

Copy link
Member

@therewasaguy therewasaguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @iRohitSingh !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants