Skip to content
Myr

test(router): fix `Simple capturing group` test (#4838)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent e1ae0eb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:src/router/common.case.test.ts+1 added-1 removed
775 unmodified lines
776777 describe('Capture Group', () => {778 describe('Simple capturing group', () => {779 beforeEach(() => {780 router.add('get', '/foo/:capture{(?:bar|baz)}', 'ok')780 router.add('get', '/foo/:capture{(bar|baz)}', 'ok')781 })782783 it('GET /foo/bar', () => {784 const res = match('get', '/foo/bar')
98 unmodified lines