ember-material-icons
Version:
Google Material icons for your ember-cli app
24 lines (20 loc) • 418 B
JavaScript
var series = require('../')
var test = require('tape')
test('functions that return errors', function (t) {
t.plan(2)
var tasks = [
function (cb) {
t.pass('cb 1')
cb(new Error('oops'))
},
function (cb) {
setTimeout(function () {
t.fail('should not execute')
cb(null, 2)
}, 100)
}
]
series(tasks, function (err) {
t.ok(err instanceof Error)
})
})