overleaf/services/web/test/frontend/shared/utils/md5.test.js
Liangjun Song c22802eac9 implement in-house md5 hash function (#18647)
* implement in-house md5 hash function

* format

* add lisence information

GitOrigin-RevId: 1416654e8c27ec7a0d6ca632e6ece59c830ef561
2024-06-04 08:04:50 +00:00

19 lines
505 B
JavaScript

import { expect } from 'chai'
import { generateMD5Hash } from '../../../../frontend/js/shared/utils/md5'
describe('md5', function () {
describe('generateSHA1Hash', function () {
it('sample string 1', function () {
expect(generateMD5Hash('sample string 1')).to.equal(
'b7988250a49c21459260b41d2b435dae'
)
})
it('sample string 2', function () {
expect(generateMD5Hash('sample string 2')).to.equal(
'371b9c84c640a9e121523156aeae4958'
)
})
})
})