Skip to content

Commit 18475fb

Browse files
committed
fixed the specs
1 parent d8119a0 commit 18475fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/unit/bin/helpers/sync/syncSpecsLogs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,14 @@ describe("syncSpecsLogs", () => {
181181
context("showSpecsStatus", () => {
182182
const showSpecsStatus = syncSpecsLogs.__get__("showSpecsStatus");
183183

184-
it('should print initial log for running specs when it is the 1st polling response', () => {
184+
it('should not print initial log for running specs when it is the 1st polling response', () => {
185185
let data = JSON.stringify(["created"])
186186
var printInitialLog = sandbox.stub();
187187
syncSpecsLogs.__set__('printInitialLog', printInitialLog);
188188

189189
showSpecsStatus(data);
190190

191-
expect(printInitialLog.calledOnce).to.be.true;
191+
expect(printInitialLog.calledOnce).to.be.false;
192192
});
193193

194194
it('should print spec details when spec related data is sent in polling response', () => {
@@ -202,6 +202,7 @@ describe("syncSpecsLogs", () => {
202202

203203
it('should print initial and spec details when spec related data is sent in polling response', () => {
204204
let specResult = JSON.stringify({"path": "path"})
205+
syncSpecsLogs.__set__('buildStarted', false)
205206
let data = JSON.stringify(["created", specResult])
206207
var printSpecData = sandbox.stub();
207208
syncSpecsLogs.__set__('printSpecData', printSpecData);

0 commit comments

Comments
 (0)