From 396923f88aa2b620e0e89a0ca066ce3f941e2cdf Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig Date: Sat, 12 Jan 2019 12:15:38 +0100 Subject: [PATCH 1/2] Fix htmlnano tests --- packages/core/integration-tests/test/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/integration-tests/test/html.js b/packages/core/integration-tests/test/html.js index ed3962951e4..c119a96aa38 100644 --- a/packages/core/integration-tests/test/html.js +++ b/packages/core/integration-tests/test/html.js @@ -289,7 +289,7 @@ describe('html', function() { 'utf8' ); assert(html.includes('Other page')); - assert(!html.includes('\n')); + assert.equal(html.split('\n').length, 2); }); it('should read .htmlnanorc and minify HTML in production mode', async function() { @@ -338,7 +338,7 @@ describe('html', function() { 'utf8' ); assert(html.includes('')); - assert(!html.includes('\n')); + assert.equal(html.split('\n').length, 2); }); it('should not prepend the public path to assets with remote URLs', async function() { From f208ad79657d4e6c41aaa1d5f42da9a44002859a Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Wed, 16 Jan 2019 14:32:04 -0800 Subject: [PATCH 2/2] Fix lint --- packages/core/parcel-bundler/test/sourcemaps.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/core/parcel-bundler/test/sourcemaps.js b/packages/core/parcel-bundler/test/sourcemaps.js index 8e6b41cbea4..075a63415c5 100644 --- a/packages/core/parcel-bundler/test/sourcemaps.js +++ b/packages/core/parcel-bundler/test/sourcemaps.js @@ -1,5 +1,4 @@ const assert = require('assert'); -const fs = require('@parcel/fs'); const SourceMap = require('../src/SourceMap'); describe('sourcemaps', function() {