From 5816c9dc60d12ab404daa4803c78e11d20ee40fc Mon Sep 17 00:00:00 2001 From: thatn3wguy Date: Sun, 12 Mar 2017 12:19:48 -0400 Subject: [PATCH] fix typo --- .../watchCases/plugins/automatic-prefetch-plugin/0/index.js | 1 - .../watchCases/plugins/automatic-prefetch-plugin/1/foo/1.js | 5 +++++ .../watchCases/plugins/automatic-prefetch-plugin/2/foo/2.js | 5 +++++ .../watchCases/plugins/automatic-prefetch-plugin/3/foo/3.js | 5 +++++ .../plugins/automatic-prefetch-plugin/webpack.config.js | 6 ++++++ 5 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 test/watchCases/plugins/automatic-prefetch-plugin/1/foo/1.js create mode 100644 test/watchCases/plugins/automatic-prefetch-plugin/2/foo/2.js create mode 100644 test/watchCases/plugins/automatic-prefetch-plugin/3/foo/3.js create mode 100644 test/watchCases/plugins/automatic-prefetch-plugin/webpack.config.js diff --git a/test/watchCases/plugins/automatic-prefetch-plugin/0/index.js b/test/watchCases/plugins/automatic-prefetch-plugin/0/index.js index 6a3a17f5d..442d148f8 100644 --- a/test/watchCases/plugins/automatic-prefetch-plugin/0/index.js +++ b/test/watchCases/plugins/automatic-prefetch-plugin/0/index.js @@ -4,6 +4,5 @@ it("should watch for changes", function() { STATS_JSON.modules[0].prefetched.should.be.true(); STATS_JSON.modules[1].prefetched.should.be.true(); STATS_JSON.modules[2].prefetched.should.be.true(); - } }); diff --git a/test/watchCases/plugins/automatic-prefetch-plugin/1/foo/1.js b/test/watchCases/plugins/automatic-prefetch-plugin/1/foo/1.js new file mode 100644 index 000000000..35b9f9ee1 --- /dev/null +++ b/test/watchCases/plugins/automatic-prefetch-plugin/1/foo/1.js @@ -0,0 +1,5 @@ +var a = require("./a"); +var b = require("./b"); +var c = require("./c"); + +module.exports = a + b + c + '.1'; \ No newline at end of file diff --git a/test/watchCases/plugins/automatic-prefetch-plugin/2/foo/2.js b/test/watchCases/plugins/automatic-prefetch-plugin/2/foo/2.js new file mode 100644 index 000000000..bdd8cf1fe --- /dev/null +++ b/test/watchCases/plugins/automatic-prefetch-plugin/2/foo/2.js @@ -0,0 +1,5 @@ +var a = require("./a"); +var b = require("./b"); +var c = require("./c"); + +module.exports = a + b + c + '.2'; diff --git a/test/watchCases/plugins/automatic-prefetch-plugin/3/foo/3.js b/test/watchCases/plugins/automatic-prefetch-plugin/3/foo/3.js new file mode 100644 index 000000000..63e585f41 --- /dev/null +++ b/test/watchCases/plugins/automatic-prefetch-plugin/3/foo/3.js @@ -0,0 +1,5 @@ +var a = require("./a"); +var b = require("./b"); +var c = require("./c"); + +module.exports = a + b + c + '.3'; diff --git a/test/watchCases/plugins/automatic-prefetch-plugin/webpack.config.js b/test/watchCases/plugins/automatic-prefetch-plugin/webpack.config.js new file mode 100644 index 000000000..3a7da4177 --- /dev/null +++ b/test/watchCases/plugins/automatic-prefetch-plugin/webpack.config.js @@ -0,0 +1,6 @@ +var webpack = require("../../../../"); +module.exports = { + plugins: [ + new webpack.AutomaticPrefetchPlugin() + ] +};