Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor htmlnano tests to test for filesize #2591

Merged
merged 4 commits into from Jan 30, 2019
Merged

Conversation

DeMoorJasper
Copy link
Member

@DeMoorJasper DeMoorJasper commented Jan 29, 2019

↪️ Pull Request

This PR refactors the htmlnano tests to test for filesize changes instead of linebreaks.

Output should be smaller than input after minification...

Closes #2532 Closes #2588

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

Copy link
Member

@mischnic mischnic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 You merely forgot an describe.only

@@ -3,7 +3,7 @@ const fs = require('@parcel/fs');
const {bundle, assertBundleTree} = require('./utils');
const path = require('path');

describe('html', function() {
describe.only('html', function() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
describe.only('html', function() {
describe('html', function() {

mischnic
mischnic previously approved these changes Jan 29, 2019
@devongovett devongovett merged commit 9abe11e into master Jan 30, 2019
@devongovett devongovett deleted the htmlnano-tests-rework branch January 30, 2019 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing CI
3 participants