diff --git a/test/named-parameter-test.js b/test/named-parameter-test.js index 3a765b0..f1244fb 100644 --- a/test/named-parameter-test.js +++ b/test/named-parameter-test.js @@ -51,3 +51,11 @@ test('named parameter with slash in the content', function(t) { t.end(); }); + +test('named parameter with parens in the content', function(t) { + var page = docuri.route('page/:id'); + + t.deepEqual(page(page({ id: 'value(slash)' })), { id: 'value(slash)' }, 'parsed page has parens set back correctly', { todo: true }); + + t.end(); +});