Skip to content

Commit 51ce389

Browse files
committed
fix tests
1 parent 5d1a760 commit 51ce389

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/unit/ci_start.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
CI_PR_URL
1212
} from '../../lib/ci/run_ci.js';
1313
import PRChecker from '../../lib/pr_checker.js';
14+
import PRData from '../../lib/pr_data.js';
1415

1516
import TestCLI from '../fixtures/test_cli.js';
1617

@@ -125,6 +126,10 @@ describe('Jenkins', () => {
125126
}safe`, async() => {
126127
const cli = new TestCLI();
127128

129+
sinon.replace(PRData.prototype, 'getCollaborators',
130+
function() { this.collaborators = []; });
131+
sinon.replace(PRData.prototype, 'getComments',
132+
function() { this.comments = []; });
128133
sinon.replace(PRChecker.prototype, 'getApprovedTipOfHead',
129134
sinon.fake.returns(certifySafe && 'deadbeef'));
130135

0 commit comments

Comments
 (0)