Skip to content

Commit 3da355a

Browse files
committed
added rspec for runs
1 parent c33beab commit 3da355a

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

test/unit/bin/commands/runs.js

+20-6
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ describe("runs", () => {
124124
setRecordCapsStub = sandbox.stub().returns(undefined);
125125
setNodeVersionStub = sandbox.stub();
126126
setBuildTagsStub = sandbox.stub();
127+
setNetworkLogsStub = sandbox.stub();
127128
});
128129

129130
afterEach(() => {
@@ -170,7 +171,8 @@ describe("runs", () => {
170171
setRecordCaps: setRecordCapsStub,
171172
setDebugMode: setDebugModeStub,
172173
setNodeVersion: setNodeVersionStub,
173-
setBuildTags: setBuildTagsStub
174+
setBuildTags: setBuildTagsStub,
175+
setNetworkLogs: setNetworkLogsStub
174176
},
175177
'../helpers/capabilityHelper': {
176178
validate: capabilityValidatorStub
@@ -221,6 +223,7 @@ describe("runs", () => {
221223
sinon.assert.calledOnce(setRecordCapsStub);
222224
sinon.assert.calledOnce(setNodeVersionStub);
223225
sinon.assert.calledOnce(setBuildTagsStub);
226+
sinon.assert.calledOnce(setNetworkLogsStub);
224227
sinon.assert.calledOnceWithExactly(
225228
sendUsageReportStub,
226229
bsConfig,
@@ -284,6 +287,7 @@ describe("runs", () => {
284287
setRecordCapsStub = sandbox.stub().returns(undefined);
285288
setNodeVersionStub = sandbox.stub();
286289
setBuildTagsStub = sandbox.stub();
290+
setNetworkLogsStub = sandbox.stub();
287291
});
288292

289293
afterEach(() => {
@@ -333,7 +337,8 @@ describe("runs", () => {
333337
setRecordCaps: setRecordCapsStub,
334338
setDebugMode: setDebugModeStub,
335339
setNodeVersion: setNodeVersionStub,
336-
setBuildTags: setBuildTagsStub
340+
setBuildTags: setBuildTagsStub,
341+
setNetworkLogs: setNetworkLogsStub
337342
},
338343
'../helpers/capabilityHelper': {
339344
validate: capabilityValidatorStub,
@@ -403,6 +408,7 @@ describe("runs", () => {
403408
sinon.assert.calledOnce(setRecordCapsStub);
404409
sinon.assert.calledOnce(setNodeVersionStub);
405410
sinon.assert.calledOnce(setBuildTagsStub);
411+
sinon.assert.calledOnce(setNetworkLogsStub);
406412
sinon.assert.calledOnceWithExactly(
407413
sendUsageReportStub,
408414
bsConfig,
@@ -468,6 +474,7 @@ describe("runs", () => {
468474
setRecordCapsStub = sandbox.stub().returns(undefined);
469475
setNodeVersionStub = sandbox.stub();
470476
setBuildTagsStub = sandbox.stub();
477+
setNetworkLogsStub = sandbox.stub();
471478
});
472479

473480
afterEach(() => {
@@ -518,7 +525,8 @@ describe("runs", () => {
518525
setRecordCaps: setRecordCapsStub,
519526
setDebugMode: setDebugModeStub,
520527
setNodeVersion: setNodeVersionStub,
521-
setBuildTags: setBuildTagsStub
528+
setBuildTags: setBuildTagsStub,
529+
setNetworkLogs: setNetworkLogsStub
522530
},
523531
'../helpers/capabilityHelper': {
524532
validate: capabilityValidatorStub,
@@ -590,6 +598,7 @@ describe("runs", () => {
590598
sinon.assert.calledOnce(setRecordCapsStub);
591599
sinon.assert.calledOnce(setNodeVersionStub);
592600
sinon.assert.calledOnce(setBuildTagsStub);
601+
sinon.assert.calledOnce(setNetworkLogsStub);
593602
sinon.assert.calledOnceWithExactly(
594603
sendUsageReportStub,
595604
bsConfig,
@@ -660,6 +669,7 @@ describe("runs", () => {
660669
setRecordCapsStub = sandbox.stub().returns(undefined);
661670
setNodeVersionStub = sandbox.stub();
662671
setBuildTagsStub = sandbox.stub();
672+
setNetworkLogsStub = sandbox.stub();
663673
});
664674

665675
afterEach(() => {
@@ -711,7 +721,8 @@ describe("runs", () => {
711721
setRecordCaps: setRecordCapsStub,
712722
setDebugMode: setDebugModeStub,
713723
setNodeVersion: setNodeVersionStub,
714-
setBuildTags: setBuildTagsStub
724+
setBuildTags: setBuildTagsStub,
725+
setNetworkLogs: setNetworkLogsStub
715726
},
716727
'../helpers/capabilityHelper': {
717728
validate: capabilityValidatorStub,
@@ -793,7 +804,7 @@ describe("runs", () => {
793804
sinon.assert.calledOnce(setRecordCapsStub);
794805
sinon.assert.calledOnce(setNodeVersionStub);
795806
sinon.assert.calledOnce(setBuildTagsStub);
796-
807+
sinon.assert.calledOnce(setNetworkLogsStub);
797808
sinon.assert.calledOnceWithExactly(
798809
sendUsageReportStub,
799810
bsConfig,
@@ -877,6 +888,7 @@ describe("runs", () => {
877888
setRecordCapsStub = sandbox.stub().returns(undefined);
878889
setNodeVersionStub = sandbox.stub();
879890
setBuildTagsStub = sandbox.stub();
891+
setNetworkLogsStub = sandbox.stub();
880892
});
881893

882894
afterEach(() => {
@@ -936,7 +948,8 @@ describe("runs", () => {
936948
setRecordCaps: setRecordCapsStub,
937949
setDebugMode: setDebugModeStub,
938950
setNodeVersion: setNodeVersionStub,
939-
setBuildTags: setBuildTagsStub
951+
setBuildTags: setBuildTagsStub,
952+
setNetworkLogs: setNetworkLogsStub
940953
},
941954
'../helpers/capabilityHelper': {
942955
validate: capabilityValidatorStub,
@@ -1035,6 +1048,7 @@ describe("runs", () => {
10351048
sinon.assert.calledOnce(setRecordCapsStub);
10361049
sinon.assert.calledOnce(setNodeVersionStub);
10371050
sinon.assert.calledOnce(setBuildTagsStub);
1051+
sinon.assert.calledOnce(setNetworkLogsStub);
10381052
sinon.assert.match(
10391053
sendUsageReportStub.getCall(0).args,
10401054
[

0 commit comments

Comments
 (0)