Skip to content

Commit d09061c

Browse files
authored
Vision snippets. (#294)
1 parent f95cd05 commit d09061c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compute/system-test/vms.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require(`../../system-test/_setup`);
1818
const vmsExample = require(`../vms`);
1919

2020
test.beforeEach(stubConsole);
21-
test.afterEach(restoreConsole);
21+
test.afterEach.always(restoreConsole);
2222

2323
test.cb(`should retrieve vms`, (t) => {
2424
vmsExample.main((err, result) => {

compute/system-test/vms_api.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require(`../../system-test/_setup`);
1818
const vmsExample = require(`../vms_api`);
1919

2020
test.beforeEach(stubConsole);
21-
test.afterEach(restoreConsole);
21+
test.afterEach.always(restoreConsole);
2222

2323
test.cb('should retrieve vms', (t) => {
2424
vmsExample.main((err, result) => {

compute/test/mailjet.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ process.env.MAILJET_API_KEY = `foo`;
2020
process.env.MAILJET_API_SECRET = `bar`;
2121

2222
test.beforeEach(stubConsole);
23-
test.afterEach(restoreConsole);
23+
test.afterEach.always(restoreConsole);
2424

2525
test.cb(`should send an email`, (t) => {
2626
proxyquire(`../mailjet`, {

compute/test/sendgrid.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const proxyquire = require(`proxyquire`).noPreserveCache();
1919
process.env.SENDGRID_API_KEY = `foo`;
2020

2121
test.beforeEach(stubConsole);
22-
test.afterEach(restoreConsole);
22+
test.afterEach.always(restoreConsole);
2323

2424
test.cb(`should send an email`, (t) => {
2525
proxyquire(`../sendgrid`, {

0 commit comments

Comments
 (0)