File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ require(`../../system-test/_setup`);
18
18
const vmsExample = require ( `../vms` ) ;
19
19
20
20
test . beforeEach ( stubConsole ) ;
21
- test . afterEach ( restoreConsole ) ;
21
+ test . afterEach . always ( restoreConsole ) ;
22
22
23
23
test . cb ( `should retrieve vms` , ( t ) => {
24
24
vmsExample . main ( ( err , result ) => {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ require(`../../system-test/_setup`);
18
18
const vmsExample = require ( `../vms_api` ) ;
19
19
20
20
test . beforeEach ( stubConsole ) ;
21
- test . afterEach ( restoreConsole ) ;
21
+ test . afterEach . always ( restoreConsole ) ;
22
22
23
23
test . cb ( 'should retrieve vms' , ( t ) => {
24
24
vmsExample . main ( ( err , result ) => {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ process.env.MAILJET_API_KEY = `foo`;
20
20
process . env . MAILJET_API_SECRET = `bar` ;
21
21
22
22
test . beforeEach ( stubConsole ) ;
23
- test . afterEach ( restoreConsole ) ;
23
+ test . afterEach . always ( restoreConsole ) ;
24
24
25
25
test . cb ( `should send an email` , ( t ) => {
26
26
proxyquire ( `../mailjet` , {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const proxyquire = require(`proxyquire`).noPreserveCache();
19
19
process . env . SENDGRID_API_KEY = `foo` ;
20
20
21
21
test . beforeEach ( stubConsole ) ;
22
- test . afterEach ( restoreConsole ) ;
22
+ test . afterEach . always ( restoreConsole ) ;
23
23
24
24
test . cb ( `should send an email` , ( t ) => {
25
25
proxyquire ( `../sendgrid` , {
You can’t perform that action at this time.
0 commit comments