Skip to content

Commit

Permalink
Moved skip test check to make it tidier
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbrazzatti committed May 21, 2024
1 parent 2acd55a commit 65506c0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/unit/services/DOIService.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});

Expand Down

0 comments on commit 65506c0

Please sign in to comment.