diff --git a/api/test/cache.srv.test.js b/api/test/cache.srv.test.js index 733b1453..09d04e69 100644 --- a/api/test/cache.srv.test.js +++ b/api/test/cache.srv.test.js @@ -76,7 +76,7 @@ test('DELETE: api/cache/data', async (t) => { headers: { 'shared-secret': '123' } - }); + }, t); t.deepEquals(res.body, { status: 200, diff --git a/api/test/exporter.srv.test.js b/api/test/exporter.srv.test.js index b0736ba6..8411ede8 100644 --- a/api/test/exporter.srv.test.js +++ b/api/test/exporter.srv.test.js @@ -87,7 +87,7 @@ test('POST /api/export - cannot export unsuccessful', async (t) => { job_id: 1, format: 'csv' } - }); + }, false); t.equals(exp.statusCode, 400, 'http: 400'); @@ -141,7 +141,7 @@ test('POST /api/export - no donor level', async (t) => { job_id: 1, format: 'csv' } - }); + }, false); t.deepEquals(exp.body, { status: 403, @@ -240,7 +240,7 @@ test('GET /api/export/100 - backer', async (t) => { }, method: 'GET', json: true - }); + }, false); t.deepEquals(exp.body, { status: 404, message: 'no exports by that id', messages: [] }); } catch (err) { @@ -296,7 +296,7 @@ test('GET /api/export/1 - backer', async (t) => { bearer: flight.token.backer }, json: true - }); + }, t); t.ok(exp.body.created, '.created: '); delete exp.body.created; @@ -332,7 +332,7 @@ test('POST /api/export - backer - exceeded limit', async (t) => { job_id: 1, format: 'csv' } - }); + }, false); t.equals(exp.statusCode, 400, 'http: 400'); diff --git a/api/test/job_error.srv.test.js b/api/test/job_error.srv.test.js index 70308291..0dfd01ea 100644 --- a/api/test/job_error.srv.test.js +++ b/api/test/job_error.srv.test.js @@ -273,7 +273,7 @@ test('GET: api/job/error', async (t) => { url: 'http://localhost:4999/api/job/error', method: 'GET', json: true - }); + }, false); t.equals(res.statusCode, 404, 'http: 404'); @@ -295,7 +295,7 @@ test('GET: api/job/error/1', async (t) => { url: 'http://localhost:4999/api/job/error/1', method: 'GET', json: true - }); + }, false); t.equals(res.statusCode, 404, 'http: 404'); diff --git a/api/test/level-override.srv.test.js b/api/test/level-override.srv.test.js index 997d3296..7d23faf8 100644 --- a/api/test/level-override.srv.test.js +++ b/api/test/level-override.srv.test.js @@ -187,7 +187,7 @@ test('GET: api/level/2', async (t) => { auth: { bearer: flight.token.admin } - }); + }, false); t.deepEquals(res.body, { status: 404, diff --git a/api/test/user.srv.test.js b/api/test/user.srv.test.js index 906af4e3..98e95bde 100644 --- a/api/test/user.srv.test.js +++ b/api/test/user.srv.test.js @@ -15,7 +15,7 @@ test('GET: api/user (no auth)', async (t) => { url: 'http://localhost:4999/api/user', method: 'GET', json: true - }); + }, false); t.equals(res.statusCode, 403, 'http: 403'); } catch (err) { t.error(err, 'no error'); @@ -63,7 +63,7 @@ test('POST: api/login (failed)', async (t) => { username: 'ingalls', password: 'password124' } - }); + }, false); t.equals(res.statusCode, 403, 'http: 403'); } catch (err) { @@ -83,7 +83,7 @@ test('POST: api/login (not confirmed)', async (t) => { username: 'ingalls', password: 'password123' } - }); + }, false); t.equals(res.statusCode, 403, 'http: 403'); t.deepEquals(res.body, {