Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c53d339

Browse files
committedMay 6, 2022
fixup!: change all instances to OrEqual
1 parent 0323f00 commit c53d339

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎test/unit/node/update.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe("update", () => {
145145

146146
await expect(settings().read()).resolves.toEqual({ update })
147147
expect(isNaN(update.checked)).toStrictEqual(false)
148-
expect(update.checked).toBeLessThan(now)
148+
expect(update.checked).toBeLessThanOrEqual(now)
149149
expect(update.version).toStrictEqual("2.1.0")
150150
expect(spy).toEqual([])
151151
})
@@ -160,7 +160,7 @@ describe("update", () => {
160160
await expect(settings().read()).resolves.toEqual({ update })
161161
expect(isNaN(update.checked)).toStrictEqual(false)
162162
expect(update.checked).toBeGreaterThanOrEqual(now)
163-
expect(update.checked).toBeLessThan(Date.now())
163+
expect(update.checked).toBeLessThanOrEqual(Date.now())
164164
expect(update.version).toStrictEqual("4.1.1")
165165
expect(spy).toStrictEqual(["/latest"])
166166
})
@@ -214,7 +214,7 @@ describe("update", () => {
214214
update = await provider.getUpdate(true)
215215
expect(isNaN(update.checked)).toStrictEqual(false)
216216
expect(update.checked).toBeGreaterThanOrEqual(now)
217-
expect(update.checked).toBeLessThan(Date.now())
217+
expect(update.checked).toBeLessThanOrEqual(Date.now())
218218
expect(update.version).toStrictEqual("unknown")
219219
})
220220

0 commit comments

Comments
 (0)
Please sign in to comment.