From 65506c07edc768b3956bee40dbe6dc936613b1db Mon Sep 17 00:00:00 2001 From: Andrew Brazzatti Date: Tue, 21 May 2024 04:55:36 +0000 Subject: [PATCH] Moved skip test check to make it tidier --- test/unit/services/DOIService.test.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/unit/services/DOIService.test.js b/test/unit/services/DOIService.test.js index fae9e47eb..d31074c40 100644 --- a/test/unit/services/DOIService.test.js +++ b/test/unit/services/DOIService.test.js @@ -3,15 +3,12 @@ describe('The DOI Service', function () { if ( !sails.config.datacite.username || !sails.config.datacite.password || - !sails.config.datacite.doiPrefix + !sails.config.datacite.doiPrefix || + process.env.SKIP_DOI_TESTS === 'true' ) { this.skip(); } else { - if (process.env.SKIP_DOI_TESTS === 'true') { - this.skip(); - } else { - done(); - } + done(); } });