Last active
November 8, 2020 18:23
-
-
Save vdsabev/8ba14410866b724d9e6f475e5f2e234a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Counter', () => { | |
... | |
it('should emit value incremented by step', async () => { | |
await component.setProps({ step: 10 }); | |
component.vm.increment(); | |
expect(component.emitted('input')).toEqual([[10]]); | |
}); | |
it('should emit value decremented by step', async () => { | |
await component.setProps({ step: 10 }); | |
component.vm.decrement(); | |
expect(component.emitted('input')).toEqual([[-10]]); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment