add tests

This commit is contained in:
Conduitry
2019-06-11 11:32:00 -04:00
parent 57b11b4b67
commit c4f92a597d
4 changed files with 37 additions and 0 deletions

View File

@@ -239,6 +239,15 @@ describe('basics', function() {
);
});
it('can access host through page store', async () => {
await r.load('/host');
assert.equal(await r.text('h1'), 'localhost');
await r.sapper.start();
assert.equal(await r.text('h1'), 'localhost');
});
// skipped because Nightmare doesn't seem to focus the <a> correctly
it('resets the active element after navigation', async () => {
await r.load('/');