Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
feat: migrate to docus (#865)
Browse files Browse the repository at this point in the history
* feat: setup docus

npx nuxi@latest init docs -t themes/docus

* feat: move folder (temp)

* feat: add series page

* chore(deps): update packages

* feat: migrate song page (WIP)

* feat: migrate 1st folder

* feat: fix

* test: add component test
  • Loading branch information
nogic1008 committed Jul 20, 2023
1 parent 100f3af commit b262bd6
Show file tree
Hide file tree
Showing 2,234 changed files with 29,010 additions and 28,543 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
12 changes: 0 additions & 12 deletions __tests__/__snapshots__/app.test.ts.snap

This file was deleted.

16 changes: 0 additions & 16 deletions __tests__/app.test.ts

This file was deleted.

51 changes: 0 additions & 51 deletions __tests__/components/Navbar.test.ts

This file was deleted.

60 changes: 0 additions & 60 deletions __tests__/components/SearchBox.test.ts

This file was deleted.

62 changes: 0 additions & 62 deletions __tests__/components/__snapshots__/Navbar.test.ts.snap

This file was deleted.

93 changes: 0 additions & 93 deletions __tests__/components/__snapshots__/SearchBox.test.ts.snap

This file was deleted.

17 changes: 9 additions & 8 deletions __tests__/components/content/Charts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ import { describe, expect, test } from 'vitest'

import Charts from '~~/components/content/Charts.vue'

import { mockSoftware } from '../../test-utils'

describe('components/content/Charts.vue', () => {
test('renders tags', () => {
const difficulties = {
0: { name: 'NORMAL', class: 'is-basic' },
1: { name: 'BASIC', class: 'is-basic' },
2: { name: 'ANOTHER', class: 'is-difficult' },
3: { name: 'MANIAC', class: 'is-expert' },
}
test('renders badges', () => {
const wrapper = mount(Charts, {
props: {
difficulties: mockSoftware.difficulties,
charts: '0,1,2,3',
levels: '1,2,3,4',
},
global: { stubs: { Badge: true } },
props: { difficulties, charts: '0,1,2,3', levels: '1,2,3,4' },
})
expect(wrapper.element).toMatchSnapshot()
})
Expand Down
14 changes: 0 additions & 14 deletions __tests__/components/content/Level.test.ts

This file was deleted.

18 changes: 18 additions & 0 deletions __tests__/components/content/Levels.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { mount, RouterLinkStub } from '@vue/test-utils'
import { describe, expect, test } from 'vitest'

import Levels from '~~/components/content/Levels.vue'

describe('components/content/Levels.vue', () => {
test.each([
['/playstation-jp/1st', '1'],
['/playstation-jp/1st,/playstation-jp/2nd', '2'],
['/playstation-jp/1st,/playstation-jp/2nd', '2,3'],
])('(links: %s, level: %s) renders expected badge', (links, level) => {
const wrapper = mount(Levels, {
global: { stubs: { Badge: true, NuxtLink: RouterLinkStub } },
props: { links, level },
})
expect(wrapper.element).toMatchSnapshot()
})
})
Loading

0 comments on commit b262bd6

Please sign in to comment.