ac-byteconverter 1.0.3 → 1.0.5

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/.eslintrc.js CHANGED
@@ -1,4 +1,5 @@
1
1
  const config = {
2
+ root: true,
2
3
  'env': {
3
4
  'commonjs': true,
4
5
  'es6': true,
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ <a name="1.0.5"></a>
2
+
3
+ ## [1.0.5](https://github.com/mmpro/ac-byteconverter/compare/v1.0.4..v1.0.5) (2023-07-21 13:10:57)
4
+
5
+
6
+ ### Bug Fix
7
+
8
+ * **App:** Package updates | MP | [56cbae1d5b4d65de6c0cfa8687c6875970fb1dda](https://github.com/mmpro/ac-byteconverter/commit/56cbae1d5b4d65de6c0cfa8687c6875970fb1dda)
9
+ Package updates
10
+ Related issues: [/issues#undefined](https://github.com//issues/undefined)
11
+ ### Tests
12
+
13
+ * **App:** Replace expect with mocha/chai | MP | [506a4570967cba9621411bc33fa5e5da9826fb69](https://github.com/mmpro/ac-byteconverter/commit/506a4570967cba9621411bc33fa5e5da9826fb69)
14
+ Replace expect with mocha/chai
15
+ Related issues: [/issues#undefined](https://github.com//issues/undefined)
16
+ <a name="1.0.4"></a>
17
+
18
+ ## [1.0.4](https://github.com/mmpro/ac-byteconverter/compare/v1.0.3..v1.0.4) (2021-10-09 10:01:46)
19
+
20
+
21
+ ### Bug Fix
22
+
23
+ * **Misc:** Moved package to AdmiralCloud account | MP | [61c79a44750267394c36a921fed710cb50c330df](https://github.com/mmpro/ac-byteconverter/commit/61c79a44750267394c36a921fed710cb50c330df)
24
+ Moved package to AdmiralCloud account
1
25
  <a name="1.0.3"></a>
2
26
 
3
27
  ## [1.0.3](https://github.com/mmpro/ac-byteconverter/compare/v1.0.2..v1.0.3) (2021-10-09 09:39:20)
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "ac-byteconverter",
3
- "author": "Mark Poepping (https://www.mmpro.de)",
3
+ "author": "Mark Poepping (https://www.admiralcloud.com)",
4
4
  "license": "MIT",
5
- "repository": "mmpro/ac-byteconverter",
6
- "version": "1.0.3",
5
+ "repository": "admiralcloud/ac-byteconverter",
6
+ "version": "1.0.5",
7
7
  "dependencies": {
8
8
  "lodash": "^4.17.21"
9
9
  },
10
10
  "devDependencies": {
11
- "ac-semantic-release": "^0.2.6",
12
- "eslint": "^7.32.0",
13
- "expect": "^27.2.5",
14
- "mocha": "^9.1.2"
11
+ "ac-semantic-release": "^0.4.2",
12
+ "chai": "^4.3.7",
13
+ "eslint": "^8.45.0",
14
+ "mocha": "^10.2.0"
15
15
  },
16
16
  "scripts": {
17
17
  "test": "mocha --reporter spec"
package/test/test.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const _ = require('lodash')
2
- const expect = require('expect')
2
+ const { expect } = require('chai')
3
3
  const byteConverter = require('../index')
4
4
 
5
5
  const formatTests = [
@@ -53,7 +53,7 @@ describe('TESTING byteConversion', function () {
53
53
  let options = _.get(test, 'options', {})
54
54
  let unit = _.get(test, 'unit')
55
55
  let r = byteConverter.format(test.value, unit, options)
56
- expect(r).toEqual(test.expected)
56
+ expect(r).to.eql(test.expected)
57
57
  return done()
58
58
  })
59
59
  })
@@ -64,7 +64,7 @@ describe('TESTING byteConversion', function () {
64
64
  it(test.name, function(done) {
65
65
  let options = _.get(test, 'options', {})
66
66
  let r = byteConverter.parse(test.value, options)
67
- expect(r).toEqual(test.expected)
67
+ expect(r).to.eql(test.expected)
68
68
  return done()
69
69
  })
70
70
  })
@@ -76,7 +76,7 @@ describe('TESTING byteConversion', function () {
76
76
  let options = _.get(test, 'options', {})
77
77
  let unit = _.get(test, 'unit')
78
78
  let r = byteConverter.format(test.value, unit, options)
79
- expect(r).toEqual(test.expected)
79
+ expect(r).to.eql(test.expected)
80
80
  return done()
81
81
  })
82
82
  })
@@ -87,7 +87,7 @@ describe('TESTING byteConversion', function () {
87
87
  it(test.name, function(done) {
88
88
  let options = _.get(test, 'options', {})
89
89
  let r = byteConverter.parse(test.value, options)
90
- expect(r).toEqual(test.expected)
90
+ expect(r).to.eql(test.expected)
91
91
  return done()
92
92
  })
93
93
  })