Add test for Zotero.Utilities.Internal.md5Async()
This commit is contained in:
parent
ae69fbbd9b
commit
5c32962bb1
1 changed files with 13 additions and 0 deletions
13
test/tests/utilities_internalTest.js
Normal file
13
test/tests/utilities_internalTest.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
describe("Zotero.Utilities.Internal", function () {
|
||||
describe("#md5Async()", function () {
|
||||
it("should generate hex string given file path", function* () {
|
||||
var file = OS.Path.join(getTestDataDirectory().path, 'test.png');
|
||||
yield assert.eventually.equal(
|
||||
Zotero.Utilities.Internal.md5Async(file),
|
||||
'93da8f1e5774c599f0942dcecf64b11c'
|
||||
);
|
||||
})
|
||||
})
|
||||
})
|
Loading…
Reference in a new issue