You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This service will probably work as expected in the scope of running Ember code.
But if there are two tests calling this service with different value for count when calling fetchFoo, then calls to getFoo will always return the response of the first test.
The text was updated successfully, but these errors were encountered:
This just bit us in our test code, so I thought an eslint rule might be a good idea.
I know that just enforcing consts is not bullet-proof as the content of an object can be still mutated, but forcing user to use const instead of var or let might give them a hint that something might be wrong.
This is my first eslint rule, so not really sure what I might have missed.
Also not sure whether there might be files that actually can have global mutable variables without compromising the tests.
Consider following service:
This service will probably work as expected in the scope of running Ember code.
But if there are two tests calling this service with different value for
count
when callingfetchFoo
, then calls togetFoo
will always return the response of the first test.The text was updated successfully, but these errors were encountered: