Skip to content

Commit ef580b6

Browse files
committed
fix test
1 parent ca31c8b commit ef580b6

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

examples/node-api-sock-path/app.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
document.write('It\'s working under a subapp');
2-
3-
// This results in a warning:
4-
if (!window) require(`./${window}parseable.js`);
1+
'use strict';
52

6-
// This results in an error:
7-
// if(!window) require("test");
3+
document.write('It\'s working under a subapp');

examples/node-api-sock-path/webpack.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
module.exports = {
24
context: __dirname,
35
entry: ['./app.js', '../../client/index.js?http://localhost:8080/&sockPath=subapp/sockjs-node'],

test/Validation.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('Validation', () => {
4848
config: { asdf: true },
4949
message: [
5050
" - configuration has an unknown property 'asdf'. These properties are valid:",
51-
' object { hot?, hotOnly?, lazy?, bonjour?, host?, allowedHosts?, filename?, publicPath?, port?, socket?, sockPath?' +
51+
' object { hot?, hotOnly?, lazy?, bonjour?, host?, allowedHosts?, filename?, publicPath?, port?, socket?, sockPath?, ' +
5252
'watchOptions?, headers?, clientLogLevel?, overlay?, progress?, key?, cert?, ca?, pfx?, pfxPassphrase?, requestCert?, ' +
5353
'inline?, disableHostCheck?, public?, https?, contentBase?, watchContentBase?, open?, useLocalIp?, openPage?, features?, ' +
5454
'compress?, proxy?, historyApiFallback?, staticOptions?, setup?, before?, after?, stats?, reporter?, reportTime?, ' +

0 commit comments

Comments
 (0)