Skip to content

Commit

Permalink
fix: keep token assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
beesaferoot committed Nov 7, 2024
1 parent 328d0c8 commit 7cd1fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/encoder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ describe("OpenPAYGOTokenEncoder test", () => {
value: data.value_raw,
extendToken: data.extended_token,
})
expect(finalToken).toBe(data.token)
} catch (err) {
if (data.value_raw === null || data.value_raw === undefined) {
console.log(`value for token (${data.token}) is null`)
return
}
expect(data.extended_token).toBe(false)
expect(data.value_raw > shared.MAX_ACTIVATION_VALUE).toBe(true)
console.log("Failed: ", err)
}
})
})
Expand Down

0 comments on commit 7cd1fb4

Please sign in to comment.