@vbarbarosh/node-helpers 3.10.0 → 3.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/fs_file_md5.js +1 -1
- package/src/fs_file_md5.test.js +11 -0
package/package.json
CHANGED
package/src/fs_file_md5.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const assert = require('assert');
|
|
2
|
+
const fs_file_md5 = require('./fs_file_md5');
|
|
3
|
+
const fs_path_resolve = require('./fs_path_resolve');
|
|
4
|
+
|
|
5
|
+
describe('fs_file_md5', function () {
|
|
6
|
+
it('should calculate md5 fs_file_md5.js', async function () {
|
|
7
|
+
const actual = await fs_file_md5(fs_path_resolve(__dirname, 'fs_file_md5.js'));
|
|
8
|
+
const expected = '103bffdc1df3af79bfd3f4b8b1bd2ed7';
|
|
9
|
+
assert.strictEqual(actual, expected);
|
|
10
|
+
});
|
|
11
|
+
});
|