server.test.ts
This file
Path
adapters/bun/src/server.test.ts
18 lines · 508 bytes · TypeScript
Last changed by
feat(adapters): add @hono/bun as a workspace package (#5447)Yusuke Wadabefore adoptionfc2343d
History of this fileTake it
feat(adapters): add @hono/bun as a workspace package (#5447)Yusuke Wadabefore adoptionfc2343d
lines 1–18why, one step back1import { describe, expect, it } from 'bun:test'2import { Context } from 'hono'3import { getBunServer } from './server'45describe('getBunServer', () => {6 it('Should success to pick Server', () => {7 const server = {}89 expect(10 getBunServer<typeof server>(new Context(new Request('http://localhost/'), { env: server }))11 ).toBe(server)12 expect(13 getBunServer<typeof server>(14 new Context(new Request('http://localhost/'), { env: { server } })15 )16 ).toBe(server)17 })18})