Skip to content

Commit

Permalink
test(presets): add tests for hono/quick and hono/tiny (#2892)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Jun 2, 2024
1 parent b6934cb commit 5c348b2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/preset/quick.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Hono } from './quick'
import { getRouterName } from '../helper/dev'

describe('hono/quick preset', () => {
it('Should have SmartRouter + LinearRouter', async () => {
const app = new Hono()
expect(getRouterName(app)).toBe('SmartRouter + LinearRouter')
})
})
9 changes: 9 additions & 0 deletions src/preset/tiny.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Hono } from './tiny'
import { getRouterName } from '../helper/dev'

describe('hono/tiny preset', () => {
it('Should have PatternRouter', async () => {
const app = new Hono()
expect(getRouterName(app)).toBe('PatternRouter')
})
})

0 comments on commit 5c348b2

Please sign in to comment.