diff --git a/test/new-user-test.js b/test/new-user-test.js index 9492c31..e146f54 100644 --- a/test/new-user-test.js +++ b/test/new-user-test.js @@ -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); });