Skip to content

Commit

Permalink
test: πŸ”’ update hash test with new parameters and value
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jan 5, 2025
1 parent 24bca26 commit 1323705
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/parsers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("parsers", async () => {
)
let i = 1
for (const img of result.images) {
await writeFile(`./loremipsum.temp.${i++}.png`, img)
await writeFile(`./loremipsum.temp.${i++}.png`, img)
}
assert(result.file.content.includes("Lorem"))
})
Expand Down Expand Up @@ -120,8 +120,8 @@ describe("parsers", async () => {
test("hash", async () => {
const result = await parsers.hash(
{ test: "test string", arr: [1, 2, "32"], v: new Uint8Array(123) },
{ length: 20 }
{ length: 20, version: false }
)
assert.strictEqual(result, "2c34c8d7df7428c89c64") // Example hash value
assert.strictEqual(result, "889772de6ac65b917519") // Example hash value
})
})

0 comments on commit 1323705

Please sign in to comment.