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() { 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() {