Skip to content

Commit

Permalink
Added test for vue loading filter
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeister committed Mar 18, 2020
1 parent 5cd48b8 commit cdd4752
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/tests/unit/api-store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,4 +894,12 @@ describe('API store', () => {
expect(await load).toMatchObject({ id: 83, name: 'Pflock', _meta: { self: 'http://localhost/camps/1/users/83' } })
done()
})

it('sets property loading on LoadingProxy to true', async done => {
// given
axiosMock.onGet('http://localhost/camps/1').reply(200, embeddedSingleEntity.serverResponse)
const loadingProxy = vm.api.get('/camps/1')
expect(loadingProxy.loading).toBe(true)
done()
})
})

0 comments on commit cdd4752

Please sign in to comment.