Skip to content

Commit

Permalink
chore(deps): revert dependencies
Browse files Browse the repository at this point in the history
This reverts commit af1c5cd.
  • Loading branch information
farnabaz committed Jan 25, 2023
1 parent af1c5cd commit 51fca2a
Show file tree
Hide file tree
Showing 6 changed files with 761 additions and 860 deletions.
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
},
"devDependencies": {
"@docsearch/js": "^3.3.2",
"@nuxt-themes/docus": "^1.6.0",
"@nuxt-themes/docus": "^1.4.7",
"@nuxthq/studio": "^0.6.5",
"@nuxtlabs/github-module": "^1.6.1",
"monaco-editor-core": "^0.34.1",
"nuxt": "3.1.0",
"nuxt": "v3.0.0",
"vue-plausible": "^1.3.2"
}
}
854 changes: 394 additions & 460 deletions docs/yarn.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"test:unit": "nuxi prepare test/fixtures/basic && nuxi prepare test/fixtures/document-driven && vitest run"
},
"dependencies": {
"@nuxt/kit": "3.1.0",
"@nuxt/kit": "v3.0.0",
"consola": "^2.15.3",
"defu": "^6.1.2",
"defu": "^6.1.1",
"destr": "^1.2.2",
"detab": "^3.0.2",
"html-tags": "^3.2.0",
Expand Down Expand Up @@ -75,14 +75,14 @@
"unified": "^10.1.2",
"unist-builder": "^3.0.1",
"unist-util-position": "^4.0.4",
"unist-util-visit": "^4.1.2",
"unist-util-visit": "^4.1.1",
"unstorage": "^1.0.1",
"ws": "^8.12.0"
},
"devDependencies": {
"@nuxt/module-builder": "^0.2.1",
"@nuxt/schema": "3.1.0",
"@nuxt/test-utils": "3.1.0",
"@nuxt/schema": "v3.0.0",
"@nuxt/test-utils": "v3.0.0",
"@nuxthq/admin": "npm:@nuxthq/admin-edge@latest",
"@nuxtjs/eslint-config-typescript": "latest",
"@types/ws": "^8.5.4",
Expand All @@ -93,7 +93,7 @@
"husky": "^8.0.3",
"jiti": "^1.16.2",
"lint-staged": "^13.1.0",
"nuxt": "3.1.0",
"nuxt": "v3.0.0",
"rehype-figure": "^1.0.1",
"remark-oembed": "^1.2.2",
"vitest": "^0.28.1",
Expand Down
12 changes: 6 additions & 6 deletions test/basic.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fileURLToPath } from 'url'
import { test, describe, expect } from 'vitest'
import { test, describe, expect, vi } from 'vitest'
import { setup, $fetch } from '@nuxt/test-utils'
import { testMarkdownParser } from './features/parser-markdown'
import { testPathMetaTransformer } from './features/transformer-path-meta'
Expand All @@ -19,7 +19,7 @@ import { testParserOptions } from './features/parser-options'
import { testComponents } from './features/components'
import { testLocales } from './features/locales'

// const spyConsoleWarn = vi.spyOn(global.console, 'warn')
const spyConsoleWarn = vi.spyOn(global.console, 'warn')

describe('Basic usage', async () => {
await setup({
Expand Down Expand Up @@ -48,10 +48,10 @@ describe('Basic usage', async () => {
expect(html).contains('<p><!--[-->p1<!--]--></p>')
})

// test('Warning for invalid file name', () => {
// expect(spyConsoleWarn).toHaveBeenCalled()
// expect(spyConsoleWarn).toHaveBeenCalledWith('Ignoring [content:with-\'invalid\'-char.md]. File name should not contain any of the following characters: \', ", ?, #, /')
// })
test('Warning for invalid file name', () => {
expect(spyConsoleWarn).toHaveBeenCalled()
expect(spyConsoleWarn).toHaveBeenCalledWith('Ignoring [content:with-\'invalid\'-char.md]. File name should not contain any of the following characters: \', ", ?, #, /')
})

testLocales()

Expand Down
8 changes: 7 additions & 1 deletion test/custom-api-base.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fileURLToPath } from 'url'
import { test, describe, expect } from 'vitest'
import { test, describe, expect, vi } from 'vitest'
import { setup, $fetch } from '@nuxt/test-utils'
import { testMarkdownParser } from './features/parser-markdown'
import { testPathMetaTransformer } from './features/transformer-path-meta'
Expand All @@ -19,6 +19,7 @@ import { testParserOptions } from './features/parser-options'
import { testComponents } from './features/components'
import { testLocales } from './features/locales'

const spyConsoleWarn = vi.spyOn(global.console, 'warn')
const apiBaseURL = '/my-content-api'

describe('Custom api baseURL', async () => {
Expand Down Expand Up @@ -51,6 +52,11 @@ describe('Custom api baseURL', async () => {
expect(html).contains('<p><!--[-->p1<!--]--></p>')
})

test('Warning for invalid file name', () => {
expect(spyConsoleWarn).toHaveBeenCalled()
expect(spyConsoleWarn).toHaveBeenCalledWith('Ignoring [content:with-\'invalid\'-char.md]. File name should not contain any of the following characters: \', ", ?, #, /')
})

testLocales()

testComponents()
Expand Down
Loading

0 comments on commit 51fca2a

Please sign in to comment.