add test for #105

This commit is contained in:
Rich Harris
2018-02-03 12:04:14 -05:00
parent b20c1c029f
commit 3449f1eb37

View File

@@ -171,6 +171,12 @@ function run(env) {
});
});
it('serves /?', () => {
return nightmare.goto(`${base}?`).page.title().then(title => {
assert.equal(title, 'Great success!');
});
});
it('serves static route', () => {
return nightmare.goto(`${base}/about`).page.title().then(title => {
assert.equal(title, 'About this site');