diff --git a/.travis.yml b/.travis.yml index 1cda1e9..09522cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: node_js node_js: - 6 + - 8 notifications: email: diff --git a/test/optimizeImage.test.js b/test/optimizeImage.test.js index a0efb8e..524a930 100644 --- a/test/optimizeImage.test.js +++ b/test/optimizeImage.test.js @@ -105,7 +105,7 @@ describe('hexo-image-minifier', () => { return promise.then(() => { for (const file of fixtures) { if (targetFile.indexOf(path.extname(file)) !== -1 - && micromatch.isMatch(file, exclude, { nocase: true, basename: true })) { + && !micromatch.isMatch(file, exclude, { nocase: true, basename: true })) { expect(hexoRoute.buffer[file]).to.be.ok; expect(fileSize[file]).to.be.greaterThan(hexoRoute.buffer[file].length); } else {