Skip to content

Commit

Permalink
Merge pull request #32 from JamesBroadberry/issue/30
Browse files Browse the repository at this point in the history
Include test suggested by @ChristianSiegert
  • Loading branch information
JamesBroadberry authored Sep 28, 2022
2 parents fb6e55a + 52a6394 commit dd91a89
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/mod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,17 @@ Deno.test({
assertEquals(resultKo, false);
},
});

Deno.test({
name:
"hash generated with older Deno and bcrypt version is still recognized as valid by newer versions of Deno and bcrypt",
async fn(): Promise<void> {
assertEquals(
await bcrypt.compare(
"password123",
"$2a$10$i7yVylH68UTYSoa./.BWxO0NTXjvPRMzT6F0CgKItqKUqwQwj3y0W",
),
true,
);
},
});

0 comments on commit dd91a89

Please sign in to comment.