Skip to content

Instantly share code, notes, and snippets.

@reebalazs
Created February 26, 2013 10:25
Show Gist options
  • Save reebalazs/5037502 to your computer and use it in GitHub Desktop.
Save reebalazs/5037502 to your computer and use it in GitHub Desktop.
buster assert exception
buster.assert.exception(block, function (err) {
return err.message.slice(0, expected.length) == expected; // startswith
}, message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment