pass response object to store getter - fixes #344

This commit is contained in:
Rich Harris
2018-08-08 10:57:10 -04:00
parent 666c113297
commit 444908cac5
3 changed files with 17 additions and 7 deletions

View File

@@ -581,11 +581,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');
});
});