Closed Narigo closed 8 years ago
Also you can just add a test that creates an Observable with a Dispose function and see if it's being called, without everything crashing. :)
I've added a test after reading a bit more about µtest and hopefully fixed the typing issue you've mentioned. I was unsure if it's working, but when setting x = false
in the disposer
function in the test, it showed a red test, so I guess it should be okay :)
Edit: This is only a test for the WrapperTest
. Do you need a FacadeTest
as well?
Added another test for ObservableFacade
. Wasn't as hard as I expected it to be :)
I guess someone can make the typing stuff look better than what I did, but I'm not really getting my head around how the union type etc works yet...
Awesome, looks good to me!
Sorry about the whitespace formatting. If you want to keep the whitespaces, I need to check how to get rid of the git setting.
Anyways, if you have an idea about how to test this, I can try to add something.