-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate test schedule data for view testing
- Loading branch information
Showing
8 changed files
with
730 additions
and
104 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {mount} from '@vue/test-utils'; | ||
import {describe, it, expect, beforeEach} from 'vitest'; | ||
import ExportView from '@/views/ExportView.vue'; | ||
import {useScheduleStore} from '@/stores/schedule'; | ||
import {getTestWeeks} from '@/utils'; | ||
|
||
describe('ExportView', () => { | ||
beforeEach(() => { | ||
const scheduleStore = useScheduleStore(); | ||
scheduleStore.weeks.push(...getTestWeeks()); | ||
}); | ||
|
||
it('mounts', () => { | ||
const wrapper = mount(ExportView); | ||
expect(wrapper.html()).toMatchSnapshot(); | ||
}); | ||
}); |
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
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
366 changes: 366 additions & 0 deletions
366
src/components/__tests__/__snapshots__/ExportView.spec.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
167 changes: 166 additions & 1 deletion
167
src/components/__tests__/__snapshots__/ScheduleView.spec.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.