mirror of https://github.com/lukechilds/ava.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
311 B
11 lines
311 B
'use strict';
|
|
var test = require('tap').test;
|
|
var AvaError = require('../lib/ava-error');
|
|
|
|
test('must be called with new', function (t) {
|
|
t.throws(function () {
|
|
var avaError = AvaError;
|
|
avaError('test message');
|
|
}, {message: 'Class constructor AvaError cannot be invoked without \'new\''});
|
|
t.end();
|
|
});
|
|
|