Skip to content

Commit 4074466

Browse files
committed
add test for self awareness
1 parent 97c5e86 commit 4074466

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/url-pattern.coffee

+8
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,11 @@ module.exports =
265265
_: ['resource']
266266
version: '1.1'
267267
test.done()
268+
269+
'self awareness': (test) ->
270+
pattern = new Pattern '/user/:userId/task/:taskId'
271+
copy = new Pattern pattern
272+
test.deepEqual copy.match('/user/10/task/52'),
273+
userId: '10'
274+
taskId: '52'
275+
test.done()

0 commit comments

Comments
 (0)