Add another test to ensure csrf token added correctly
This commit is contained in:
parent
178892c62e
commit
1feaa726d2
@ -7,7 +7,6 @@ const localVue = createLocalVue()
|
|||||||
localVue.use(VTooltip)
|
localVue.use(VTooltip)
|
||||||
|
|
||||||
describe('ConfirmationPopover', () => {
|
describe('ConfirmationPopover', () => {
|
||||||
it('matches snapshot', () => {
|
|
||||||
const wrapper = shallowMount(ConfirmationPopover, {
|
const wrapper = shallowMount(ConfirmationPopover, {
|
||||||
localVue,
|
localVue,
|
||||||
propsData: {
|
propsData: {
|
||||||
@ -20,7 +19,14 @@ describe('ConfirmationPopover', () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('matches snapshot', () => {
|
||||||
expect(wrapper).toMatchSnapshot()
|
expect(wrapper).toMatchSnapshot()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('renders form with hidden csrf input', () => {
|
||||||
|
const input = wrapper.find('input[type=hidden]')
|
||||||
|
expect(input.exists()).toBe(true)
|
||||||
|
expect(input.attributes('value')).toBe('42')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user