Files
CanvasTextWrapper/node_modules/grunt-contrib-nodeunit/test/fixtures/fail.js
T
namniak 6ddb18a127 v0.1.0
2014-06-27 00:31:51 -04:00

19 lines
496 B
JavaScript

'use strict';
exports.fail = {
fail: function(test) {
test.ok(undefined, 'this value should be truthy');
test.done();
},
failSupertestError: function(test) {
var error = new Error('Something arbitrary');
// Must be long enough that the inspect calls try to
// wrap the line for indentation.
error.actual = { foo: 'bar', something: 'complex', more: 'more' };
error.expected = "No you didn't"
error.showDiff = true;
throw(error);
test.done();
},
};