Last active
June 21, 2019 04:40
-
-
Save Robdel12/1270203aa9176987bcf56da9e73a84a2 to your computer and use it in GitHub Desktop.
This file contains 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
import { mount } from 'testing-hooks/react-dom'; | |
import { type } from 'interactor.js'; | |
import MyInputComponent from './MyInputComponent'; | |
describe('MyInputComponent', () => { | |
beforeEach(async () => { | |
await mount( | |
<MyInputComponent {...props} /> | |
); | |
}); | |
it('changes the value', async () => { | |
await type('input', 'Name Namerson').assert.value('Name Namerson') | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment