Skip to content

Commit

Permalink
Update jasmine.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza committed Oct 22, 2024
1 parent 5f1cf60 commit a21f2f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/support/jasmine.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ const semver = require('semver');

const satisfiesParseServerVersion = version => {
const envVersion = process.env.PARSE_SERVER_VERSION;
const semverVersion = semver.coerce(envVersion);
console.log(`satisfiesParseServerVersion: envVersion: ${version}`);
console.log(`satisfiesParseServerVersion: version: ${envVersion}`);
return !envVersion || semver.satisfies(envVersion, version);
return !envVersion || !semverVersion || semver.satisfies(semverVersion, version);

Check failure on line 8 in spec/support/jasmine.js

View workflow job for this annotation

GitHub Actions / Lint

Irregular whitespace not allowed
}

global.it_only_parse_server_version = version => satisfiesParseServerVersion(version) ? it : xit;
Expand Down

0 comments on commit a21f2f9

Please sign in to comment.