@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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Vladimir Barbarosh <vladimir.barbarosh@gmail.com>",
3
3
  "license": "MIT",
4
4
  "name": "@vbarbarosh/node-helpers",
5
- "version": "3.10.0",
5
+ "version": "3.10.1",
6
6
  "description": "A set of helpers for JavaScript/Node.js",
7
7
  "files": [
8
8
  "src"
@@ -9,4 +9,4 @@ async function fs_file_md5(file, encoding = 'hex')
9
9
  return md5.digest(encoding);
10
10
  }
11
11
 
12
- module.export = fs_file_md5;
12
+ module.exports = fs_file_md5;
@@ -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
+ });