mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-18 13:35:08 +00:00
add test for #105
This commit is contained in:
@@ -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', () => {
|
it('serves static route', () => {
|
||||||
return nightmare.goto(`${base}/about`).page.title().then(title => {
|
return nightmare.goto(`${base}/about`).page.title().then(title => {
|
||||||
assert.equal(title, 'About this site');
|
assert.equal(title, 'About this site');
|
||||||
|
|||||||
Reference in New Issue
Block a user