-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Resolves all the errors with VolumeActions.test.js #4422
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
Conversation
Resolves all the errors of the test cases for the VolumeActions.test.js
|
I am a bit confused here. Doesn't block_id need to be an int (an index into the blockList)? The blockList you are mocking has only 1 entry. And doesn't setMasterVolume call synth.setMasterVolume, which expects connections (with is a null list in your mock data.) |
|
@walterbender right in noting that block_id should typically be an integer or an index into blockList, and that the setMasterVolume method involves calling synth.setMasterVolume, which expects connections. i m correcting this in next commit |
|
Also, I have been looking at the synthutils test, which has a few things wrong with it above and beyond Volume. Not sure how it ever worked properly. |
I m too running around many errors in the tests will look in to that too @walterbender thansk for pointing me out |
|
@walterbender i had revised the changes you mention with blocklist and setmastervolume take a look over this |
|
@walterbender do you need something else to be changed with this pr |
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
This is wrong. A guitar is a Sampler, not AMSynth. |
|
getVolume should be removed... it doesn't exist in synthUtils |
|
The calls to setMasterVolume needs first and last connection args. |
@walterbender I added this check before creating a new synth: After making this change, all tests passed successfully. |
|
@walterbender in this PR i had only resolved the errors regarding the volumeAction.test.js all the other errors you are mentioning are of synthutils i guess so is there any required changes i the volumeaction.test.js |
|
also regarding the errors of synthUtils test i m resolving those too asap in another PR to keep reviewing easier @walterbender |
@ac-mmi I think you should comment this in your PR as this creates an unwanted confusion to me please !! |
|
OK. So just the VolumeActions here? I'll go ahead and merge. |
@walterbender After changes in the VolumeActions.js there is failure of some of the tests in the test suite which are resolved and also add some more edge test cases to maximise the code coverage please review this.