Skip to content

Commit d98bfa1

Browse files
authored
Merge pull request #2369 from pankajjs/fix/flaky-test
Fix flaky test present in PR[2335]
1 parent f4e99fb commit d98bfa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/services/onboardingExtension.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe("Test Onboarding Extension Service", () => {
177177
expect(response.lastModifiedBy).to.equal(userId);
178178
expect(response.newEndsOn).to.equal(newDate);
179179
expect(response.reason).to.equal("test-reason");
180-
expect(response.updatedAt).to.equal(newDate);
180+
expect(new Date(response.updatedAt).toDateString()).to.equal(new Date(newDate).toDateString());
181181
});
182182

183183
it("should throw error", async () => {

0 commit comments

Comments
 (0)