mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-11 19:04:30 +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', () => {
|
||||
return nightmare.goto(`${base}/about`).page.title().then(title => {
|
||||
assert.equal(title, 'About this site');
|
||||
|
||||
Reference in New Issue
Block a user