EmanuelBalaban / provider_test

A testing library which makes it easy to test providers. Built after bloc_test package.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[Bug] Check notifylisteners() is not working #2

Open antoniosb8891 opened 8 months ago

antoniosb8891 commented 8 months ago

Hi,

Documentaion says:

expect is an optional Map used to match the changes in the states of the provider. The key is the selector of the property to listen to. The value is the list of states or matchers to verify against the updates in the given property. Please be aware that updates are detected only if notifyListeners has been called.

But if i remove calling notifyListeners(); , listening changes in "expect" map are still checking anyway. expect: { (provider) => provider.value: [1], },

It's incorrect behavior. Please, fix this.

EmanuelBalaban commented 6 months ago

Hello. First off, sorry for the delayed response and thanks for contributing to this pub.

I will investigate today in the evening. Until then, can you provide a small example for what you are trying to achieve? It would be very useful for testing the library against a real scenario.