Skip to content

Commit

Permalink
define fileInfo object in unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Neumann <artur@jankaritech.com>
  • Loading branch information
individual-it committed Mar 15, 2022
1 parent a7b8611 commit 8dc9c90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/jest/views/ProjectsTab.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ describe('ProjectsTab.vue Test', () => {
beforeEach(() => {
// eslint-disable-next-line no-import-assign
initialState.loadState = jest.fn(() => 'https://openproject/oauth/')
wrapper = shallowMount(ProjectsTab, { localVue })
wrapper = shallowMount(ProjectsTab, {
localVue,
data: () => ({
fileInfo: {},
}),
})
})
describe('loading icon', () => {
it('shows the loading icon during "loading" state', async () => {
Expand Down

0 comments on commit 8dc9c90

Please sign in to comment.