fn.name is empty since it is anonymous
This commit is contained in:
parent
10a51cf09d
commit
2591b81540
@ -98,19 +98,19 @@ describe('Appstore new user flow', function () {
|
||||
});
|
||||
|
||||
it('has setup DNS records cleaned up', function (done) {
|
||||
function expectError(fn) {
|
||||
function expectError(tag, fn) {
|
||||
return function (cb) {
|
||||
fn(function (error) {
|
||||
cb(error ? null : new Error('Expecing error for ' + fn.name));
|
||||
cb(error ? null : new Error('Expecting error for ' + tag));
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
async.series([
|
||||
expectError(cloudron.checkA.bind(cloudron)),
|
||||
expectError(cloudron.checkSPF.bind(cloudron)),
|
||||
expectError(cloudron.checkDKIM.bind(cloudron)),
|
||||
expectError(cloudron.checkDMARC.bind(cloudron))
|
||||
expectError('checkA', cloudron.checkA.bind(cloudron)),
|
||||
expectError('checkSPF', cloudron.checkSPF.bind(cloudron)),
|
||||
expectError('checkDKIM', cloudron.checkDKIM.bind(cloudron)),
|
||||
expectError('checkDMARC', cloudron.checkDMARC.bind(cloudron))
|
||||
], done);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user