Skip to content

Commit

Permalink
test(nuekit): drop removed function from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd authored Jan 13, 2024
1 parent 42fb3d1 commit 71755d9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/nuekit/test/misc.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import { buildCSS, findModule } from '../src/builder.js'
import { parseMarkdown, getParts } from '../src/util.js'
import { getParts } from '../src/util.js'
import { match } from '../src/browser/app-router.js'
import { renderHead } from '../src/layout.js'
import { getArgs } from '../src/cli.js'
Expand Down Expand Up @@ -75,13 +75,6 @@ test('head', () => {
expect(head).toInclude('<link rel="preload" as="image" href="hey.png">')
})


test('markdown', async () => {
const { meta, content } = parseMarkdown('---\nog: og.png\n---\n# Hey')
expect(meta.og).toBe('og.png')
expect(content.trim()).toBe('<h1>Hey</h1>')
})

test('app router', async () => {
expect(match('/fail/:id', '/users/20')).toBeNull()
expect(match('/users/:id/edit', '/users/20')).toBeNull()
Expand Down

0 comments on commit 71755d9

Please sign in to comment.