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 () => { it('calls a delete handler', () => {
await nightmare return nightmare
.goto(`${base}/delete-test`) .goto(`${base}/delete-test`)
.wait(() => window.READY) .wait(() => window.READY)
.click('.del') .click('.del')
.wait(() => window.deleted); .wait(() => window.deleted)
.evaluate(() => window.deleted.id)
assert.equal( .then(id => {
await nightmare.evaluate(() => window.deleted.id), assert.equal(id, 42);
42 });
);
}); });
}); });

View File

@@ -6,7 +6,12 @@ module.exports = {
client: { client: {
entry: () => { entry: () => {
return { 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 = {
}; };
} }
} }
}; };