var test = require('tap').test; var docuri = require('..'); test('splat and named parameter', function(t) { docuri.route('*splat/page/:named', 'page'); t.deepEqual(docuri.page('splat/page/named'), { splat: [ 'splat' ], named: 'named' }, 'splat and named parameter parsed correctly'); t.equal(docuri.page({ splat: [ 'splat' ], named: 'named' }), 'splat/page/named', 'stringified result is in right order'); t.end(); });