Update frontend/src/components/Inputs/InputUsername.spec.js

Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
Alexander Friedland 2023-06-28 08:18:27 +02:00 committed by GitHub
parent 117162d366
commit 71b7a2adf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ describe('UserName Form', () => {
beforeEach(async () => {
wrapper = Wrapper()
await wrapper.setProps({ value: 'petra' })
wrapper.vm.currentValue = 'petra swastiska'
await wrapper.find('div.input-username.input[type="text"]').setValue('petra swastiska')
})
it('emits input event with the current value', () => {
expect(wrapper.emitted('input')).toEqual([['petra swastiska']])