@roxi/routify
Version:
14 lines (11 loc) • 468 B
JavaScript
import { RoutifyRuntime } from '../../../lib/runtime/Instance/RoutifyRuntime.js'
test('RoutifyRuntimes uses RNodeRuntime', async () => {
const instance = new RoutifyRuntime({})
const child = instance.createNode('test')
expect(child.constructor.name).toBe('RNodeRuntime')
})
test('RNodeRuntime has regex prop', async () => {
const instance = new RoutifyRuntime({})
const child = instance.createNode('test')
expect(child.regex).toBeTruthy()
})