-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Description
I have the following test.
it('should keep result in memory', function () {
// setup
td.replace(testStore, 'get');
td.when(
testStore.get('myStore')
).thenResolve('[]');
const manager = storyManager('myStore');
// test
return manager.get().then(() =>
manager.get().then(() => {
td.verify(testStore.get('myStore'), { times: 1 });
})
);
});Which yields the warning test double 'get' was both stubbed and verified. Yet I cannot remove the stub, because it needs to resolve a Promise. Neither can I remove the verify because I need to check if times is 1 for my test to be correct.
Can we consider not warning when times is used in verification?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels