-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
synthutils test is broken #4404
Comments
@falgun143 can you please investigate |
@walterbender sure. @omsuneri can I work on this ? |
@falgun143 yaa you can but follow the guide while changing any test |
@falgun143 I ll suggest you to first investigate the changes you did in #4396 and try to resolve from there without changing the actual test cases |
@walterbender Not only synthutils test is broken but their are many other tests failing.
|
Thanks @Harshit-7373 for pointing it out but volumeaction.js test is resolved in the #4422 also the errors with synthutils.js i m resolving right now will be raising a PR for the same soon |
@omsuneri I guess that PR is not merged yet because i am still getting error. Can you tell me something about it? |
yes its under review will be merged soon. |
@omsuneri what are the other test files you are working on? |
@falgun143 you can take turtle-singer.js failing as i m not resolving it also try to add some more edge case tests |
@omsuneri alright I will take turtle-singer.js and write some checks in the .js files in which I made changes. |
@falgun143 sure also dont try to alter the root file functions as well |
@walterbender, the reason why the synthutils test passes—apart from volume blocks—is purely luck. There is a disconnect between what we are calculating and what we are testing. BUGS: We are calculating values for the flute but testing for the piano. As a result, Tone.gainToDb() gets called twice: First, from this line: 2nd from thisSecond, from this calculation: And now the Tone.gainToDb() will recieve two values and if in this function . expect(Tone.gainToDb).toHaveBeenCalledWith(0.96); 2.
I will raise a PR soon—I was a bit busy over the last 6 days. |
Description
The changes to the volume code changes and seems to have broken the unit test
The text was updated successfully, but these errors were encountered: