Skip to content

Commit

Permalink
feat(test): add prose components tests files
Browse files Browse the repository at this point in the history
  • Loading branch information
aburii committed Dec 19, 2024
1 parent e9c8ad1 commit b0401e6
Show file tree
Hide file tree
Showing 21 changed files with 210 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/A.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import A from '../../src/runtime/components/prose/A.vue'

describe('A', () => {
it('can mount component', async () => {
const html = await renderSuspended(A)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/Callout.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import A from '../../src/runtime/components/prose/Callout.vue'

describe('A', () => {
it('can mount component', async () => {
const html = await renderSuspended(A)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/Code.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Code from '../../src/runtime/components/prose/Code.vue'

describe('Code', () => {
it('can mount component', async () => {
const html = await renderSuspended(Code)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/CodeGroup.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import CodeGroup from '../../src/runtime/components/prose/CodeGroup.vue'

describe('CodeGroup', () => {
it('can mount component', async () => {
const html = await renderSuspended(CodeGroup)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/CodeIcon.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import CodeIcon from '../../src/runtime/components/prose/CodeIcon.vue'

describe('CodeIcon', () => {
it('can mount component', async () => {
const html = await renderSuspended(CodeIcon)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/H1.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import H1 from '../../src/runtime/components/prose/H1.vue'

describe('H1', () => {
it('can mount component', async () => {
const html = await renderSuspended(H1)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/H2.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import H2 from '../../src/runtime/components/prose/H2.vue'

describe('H2', () => {
it('can mount component', async () => {
const html = await renderSuspended(H2)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/H3.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import H3 from '../../src/runtime/components/prose/H3.vue'

describe('H3', () => {
it('can mount component', async () => {
const html = await renderSuspended(H3)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/H4.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import H4 from '../../src/runtime/components/prose/H4.vue'

describe('H4', () => {
it('can mount component', async () => {
const html = await renderSuspended(H4)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/Hr.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Hr from '../../src/runtime/components/prose/Hr.vue'

describe('Hr', () => {
it('can mount component', async () => {
const html = await renderSuspended(Hr)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/Img.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Img from '../../src/runtime/components/prose/Img.vue'

describe('Img', () => {
it('can mount component', async () => {
const html = await renderSuspended(Img)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/Li.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Li from '../../src/runtime/components/prose/Li.vue'

describe('Li', () => {
it('can mount component', async () => {
const html = await renderSuspended(Li)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/Ol.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Ol from '../../src/runtime/components/prose/Ol.vue'

describe('Ol', () => {
it('can mount component', async () => {
const html = await renderSuspended(Ol)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/P.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import P from '../../src/runtime/components/prose/P.vue'

describe('P', () => {
it('can mount component', async () => {
const html = await renderSuspended(P)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/Pre.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Pre from '../../src/runtime/components/prose/Pre.vue'

describe('Pre', () => {
it('can mount component', async () => {
const html = await renderSuspended(Pre)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/ProseIcon.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import ProseIcon from '../../src/runtime/components/prose/ProseIcon.vue'

describe('ProseIcon', () => {
it('can mount component', async () => {
const html = await renderSuspended(ProseIcon)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/Ul.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Ul from '../../src/runtime/components/prose/Ul.vue'

describe('Ul', () => {
it('can mount component', async () => {
const html = await renderSuspended(Ul)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/callout/Danger.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Danger from '../../src/runtime/components/prose/callout/Danger.vue'

describe('Danger', () => {
it('can mount component', async () => {
const html = await renderSuspended(Danger)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/callout/Note.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Note from '../../src/runtime/components/prose/callout/Note.vue'

describe('Note', () => {
it('can mount component', async () => {
const html = await renderSuspended(Note)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/callout/Tip.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Tip from '../../src/runtime/components/prose/callout/Tip.vue'

describe('Tip', () => {
it('can mount component', async () => {
const html = await renderSuspended(Tip)
expect(html.html()).toMatchSnapshot()
})
})
10 changes: 10 additions & 0 deletions packages/nuxt/test/components/prose/callout/Warning.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import { renderSuspended } from '@nuxt/test-utils/runtime'
import Warning from '../../src/runtime/components/prose/callout/Warning.vue'

describe('Warning', () => {
it('can mount component', async () => {
const html = await renderSuspended(Warning)
expect(html.html()).toMatchSnapshot()
})
})

0 comments on commit b0401e6

Please sign in to comment.