Skip to content

Conversation

mojoaxel
Copy link

This introduces a new option gallery which is true by default.
If gallery is set to false and server.start is also false then the outputFolder gets removed completely (clean) after the compare.

Also the callback now returns the highest mismatch percentage found. This is useful if you want to run wraith quiet inside automated tests. e.g.:

config.quiet = true;
config.gallery = false;
new Wraith(config, function(maxMissmatch) {
  assert.equal(maxMissmatch, 0);
});

All changes are compatible to existing configs. Therefore I recommend a minor version change.

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.

1 participant