We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d5609 commit 7a20ccdCopy full SHA for 7a20ccd
test/Server.test.js
@@ -88,6 +88,27 @@ describe("Server", function() {
88
});
89
90
91
+ describe("lazy mode", function() {
92
+ before(function(done) {
93
+ app = express();
94
+ var compiler = webpack(webpackConfig);
95
+ app.use(middleware(compiler, {
96
+ stats: "errors-only",
97
+ quiet: true,
98
+ lazy: true,
99
+ publicPath: "/",
100
+ }));
101
+ listen = listenShorthand(done);
102
+ });
103
+ after(close);
104
+
105
+ it("GET request to bundle file", function(done) {
106
+ request(app).get("/bundle.js")
107
+ .expect("Content-Length", "2780")
108
+ .expect(200, /console\.log\("Hey\."\)/, done);
109
110
111
112
describe("custom headers", function() {
113
before(function(done) {
114
app = express();
0 commit comments