Skip to content

Commit

Permalink
TINY-11177: Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpyder committed Sep 16, 2024
1 parent e80663d commit 625a2ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/runner/src/test/ts/reporter/ReporterTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ describe('Reporter.test', () => {
reset();
const test = reporter.test(fileName + 'Test.ts', testName, testCount);
test.start();
return reporter.waitForResults().then(() => {
assert.equal(startTestData.length, 1, 'Checking start test data length');
return Promise.resolve().then(() => {
assert.equal(startTestData.length, 1, 'Checking there is start test data');
assert.deepEqual(startTestData[0], {
currentCount: offset + 1,
session: sessionId,
Expand All @@ -92,7 +92,7 @@ describe('Reporter.test', () => {
name: testName
}, 'Checking start test data contents');

assert.equal(endTestData.length, 0, 'Checking end test data length');
assert.equal(endTestData.length, 0, 'Checking there is no end test data');
assert.deepEqual(reporter.summary(), {
offset,
passed: offset,
Expand Down

0 comments on commit 625a2ce

Please sign in to comment.