feat(md5): now creates md5 hashes

This commit is contained in:
2019-11-21 14:17:48 +00:00
parent cb5b3d2172
commit 0ed76d1ad4
5 changed files with 326 additions and 390 deletions

View File

@ -47,4 +47,9 @@ tap.test('should produce reproducible hash from Object', async () => {
expect(hash1).to.not.equal(hash3);
});
tap.test('should create md5hash from string', async () => {
const md5Hash = await smarthash.md5FromString('hellothere');
expect(md5Hash).to.equal('c6f7c372641dd25e0fddf0215375561f');
});
tap.start();