mirror of https://github.com/jo/docuri.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
329 B
JavaScript
14 lines
329 B
JavaScript
var test = require('tap').test;
|
|
var docuri = require('..');
|
|
|
|
test('simple route', function(t) {
|
|
var page = docuri.route('page');
|
|
|
|
t.deepEqual(page('page'), {}, 'parsed page returns empty object');
|
|
t.equal(page('image'), false, 'parsed image returns false');
|
|
t.equal(page(), 'page', 'generate page url');
|
|
|
|
t.end();
|
|
});
|
|
|