mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
c22802eac9
* implement in-house md5 hash function * format * add lisence information GitOrigin-RevId: 1416654e8c27ec7a0d6ca632e6ece59c830ef561
19 lines
505 B
JavaScript
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'
|
|
)
|
|
})
|
|
})
|
|
})
|