diff --git a/packages/core/integration-tests/test/pug.js b/packages/core/integration-tests/test/pug.js index 79bc8f0f778..59198e60a7b 100644 --- a/packages/core/integration-tests/test/pug.js +++ b/packages/core/integration-tests/test/pug.js @@ -1,7 +1,7 @@ const assert = require('assert'); const path = require('path'); const fs = require('@parcel/fs'); -const {bundle, assertBundleTree, normaliseNewlines} = require('./utils'); +const {bundle, assertBundleTree} = require('./utils'); describe('pug', function() { it('should support bundling HTML', async function() { @@ -58,17 +58,13 @@ describe('pug', function() { assets: ['index.pug'] }); - const html = normaliseNewlines( - await fs.readFile(path.join(__dirname, '/dist/index.html'), 'utf-8') - ); - const expect = normaliseNewlines( - await fs.readFile( - path.join(__dirname, '/integration/pug-include-extends/expect.html'), - 'utf-8' - ) + const html = await fs.readFile( + path.join(__dirname, '/dist/index.html'), + 'utf-8' ); - assert.equal(html, expect, 'Content mismatch'); + assert(html.includes('')); + assert(html.includes("

Yep, it's working!

")); }); it('should support variables', async function() {