Merge branch 'master' into test-in-node-6

This commit is contained in:
Rich Harris
2018-01-14 00:14:40 -05:00
2 changed files with 14 additions and 10 deletions

View File

@@ -311,17 +311,16 @@ function run(env) {
});
});
it('calls a delete handler', async () => {
await nightmare
it('calls a delete handler', () => {
return nightmare
.goto(`${base}/delete-test`)
.wait(() => window.READY)
.click('.del')
.wait(() => window.deleted);
assert.equal(
await nightmare.evaluate(() => window.deleted.id),
42
);
.wait(() => window.deleted)
.evaluate(() => window.deleted.id)
.then(id => {
assert.equal(id, 42);
});
});
});

View File

@@ -6,7 +6,12 @@ module.exports = {
client: {
entry: () => {
return {
main: entry.client
main: [
entry.client,
// workaround for https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/456
'style-loader/lib/addStyles',
'css-loader/lib/css-base'
]
};
},
@@ -36,4 +41,4 @@ module.exports = {
};
}
}
};
};