mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-20 06:15:15 +00:00
add tests
This commit is contained in:
@@ -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('/');
|
||||
|
||||
Reference in New Issue
Block a user