diff --git a/.travis.yml b/.travis.yml index 7742397..061af0f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,7 @@ node_js: - "0.12" - "0.10" - "4" +script: + - npm test + - npm rm webpack && npm i webpack@beta || true + - npm test diff --git a/appveyor.yml b/appveyor.yml index 5bc2d72..47f137c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,4 +20,4 @@ install: test_script: - node --version - npm --version - - npm test \ No newline at end of file + - npm test diff --git a/spec/BasicSpec.js b/spec/BasicSpec.js index a653f33..fc70fd0 100644 --- a/spec/BasicSpec.js +++ b/spec/BasicSpec.js @@ -20,6 +20,8 @@ var HtmlWebpackPlugin = require('../index.js'); var OUTPUT_DIR = path.join(__dirname, '../dist'); +jasmine.getEnv().defaultTimeoutInterval = 5000; + function testHtmlPlugin (webpackConfig, expectedResults, outputFile, done, expectErrors, expectWarnings) { outputFile = outputFile || 'index.html'; webpack(webpackConfig, function (err, stats) { @@ -106,7 +108,7 @@ describe('HtmlWebpackPlugin', function () { }, [' - <% } %> - - - diff --git a/spec/fixtures/template.jade b/spec/fixtures/template.jade new file mode 100644 index 0000000..5f56e94 --- /dev/null +++ b/spec/fixtures/template.jade @@ -0,0 +1,9 @@ +doctype html +html + head + meta(http-equiv="Content-type" content="text/html; charset=utf-8") + title Demo + body + p Some unique text + each jsFile in htmlWebpackPlugin.files.js + script(src!=jsFile)