Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit c1dbe16

Browse files
author
Rodrigo Fernandes
committed
Fix tests (thanks @DavidTPate)
skip comparison when commit is pr
1 parent 3e4f3ec commit c1dbe16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/getGitData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
it('should be able to get the commit id from Git', function () {
5252
// If we are currently running on Travis, we should be able to use the commit id environment variable
5353
// to check the git commit id method with actual git.
54-
if (actualTravisCommit) {
54+
if (actualTravisCommit && process.env.TRAVIS_PULL_REQUEST !== 'true') {
5555
return expect(getGitData.getCommitId()).to.eventually.equal(actualTravisCommit);
5656
}
5757
return expect(getGitData.getCommitId()).to.eventually.be.fulfilled;
5858
});
5959
});
60-
}(require('joi'), require('chai'), require('q'), require('util'), require('../lib/getGitData')));
60+
}(require('joi'), require('chai'), require('q'), require('util'), require('../lib/getGitData')));

0 commit comments

Comments
 (0)