Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jun 14, 2024
1 parent ca34454 commit 695df08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/win32-api/test/70.user32.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ describe(fileShortPath(import.meta.url), () => {
point.x = 101
point.y = Math.round(Math.random() * 1000000)

const adress = point.ref().address()
tmpMap.delete(adress)
const address = point.ref().address()
tmpMap.delete(address)

await enumWindows(enumWindowsProc, address)
console.log({ address })

const point2 = tmpMap.get(adress)
const point2 = tmpMap.get(address)
assert(point2, 'point2 should be got')
if (point2) {
assert(point.x === point2.x)
assert(point.y === point2.y)
}
tmpMap.delete(adress)
tmpMap.delete(address)

child.kill()
console.log({ killed: child.killed })
Expand Down

0 comments on commit 695df08

Please sign in to comment.