-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test): add prose components tests files
- Loading branch information
Showing
21 changed files
with
210 additions
and
0 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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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
10
packages/nuxt/test/components/prose/callout/Danger.spec.ts
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,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() | ||
}) | ||
}) |
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,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() | ||
}) | ||
}) |
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,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
10
packages/nuxt/test/components/prose/callout/Warning.spec.ts
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,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() | ||
}) | ||
}) |