fix fallback index file

This commit is contained in:
Rich Harris
2018-07-17 16:59:13 -04:00
parent 9e1207cdd7
commit c867f051c2
3 changed files with 21 additions and 6 deletions

View File

@@ -659,6 +659,14 @@ function run({ mode, basepath = '' }) {
]);
});
});
it('uses a fallback index component if none is provided', () => {
return nightmare.goto(`${base}/missing-index/ok`)
.page.title()
.then(title => {
assert.equal(title, 'it works');
});
});
});
describe('headers', () => {