Merge pull request #350 from sveltejs/gh-344

pass response object to store getter
This commit is contained in:
Rich Harris
2018-08-09 20:13:17 -04:00
committed by GitHub
3 changed files with 17 additions and 7 deletions

View File

@@ -608,11 +608,11 @@ function run({ mode, basepath = '' }) {
return nightmare.goto(`${base}/store`)
.page.title()
.then(title => {
assert.equal(title, 'Stored title');
assert.equal(title, 'hello world');
return nightmare.init().page.title();
})
.then(title => {
assert.equal(title, 'Stored title');
assert.equal(title, 'hello world');
});
});