Sha256: 06e15d78336a02ce925aa66e6c8fe42e3c4e862e92426f6443849b0de96178a6
Contents?: true
Size: 366 Bytes
Versions: 53
Compression:
Stored size: 366 Bytes
Contents
'use strict'; var customError = require('es5-ext/error/custom') , ee = require('../'); module.exports = function (t, a) { var x, error = customError('Some error', 'ERROR_TEST'), emitted; x = ee(); a.throws(function () { t.call(x, error); }, 'ERROR_TEST'); x.on('error', function (err) { emitted = err; }); t.call(x, error); a(emitted, error); };
Version data entries
53 entries across 53 versions & 7 rubygems