update tests

This commit is contained in:
Rich Harris
2018-09-30 11:32:58 -04:00
parent 2185f89669
commit 5573258a10
10 changed files with 39 additions and 40 deletions

View File

@@ -1,14 +1,12 @@
import { init, goto, prefetchRoutes } from '../../../runtime.js';
import { Store } from 'svelte/store.js';
import { manifest } from './manifest/client.js';
import * as sapper from './__sapper__/client.js';
window.init = () => {
return init({
return sapper.start({
target: document.querySelector('#sapper'),
manifest,
store: data => new Store(data)
});
};
window.prefetchRoutes = prefetchRoutes;
window.goto = goto;
window.prefetchRoutes = sapper.prefetchRoutes;
window.goto = sapper.goto;