ac-byteconverter 1.0.4 → 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/CHANGELOG.md +15 -0
- package/package.json +5 -5
- package/test/test.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
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)
|
|
1
16
|
<a name="1.0.4"></a>
|
|
2
17
|
|
|
3
18
|
## [1.0.4](https://github.com/mmpro/ac-byteconverter/compare/v1.0.3..v1.0.4) (2021-10-09 10:01:46)
|
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"author": "Mark Poepping (https://www.admiralcloud.com)",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "admiralcloud/ac-byteconverter",
|
|
6
|
-
"version": "1.0.
|
|
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
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"mocha": "^
|
|
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('
|
|
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).
|
|
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).
|
|
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).
|
|
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).
|
|
90
|
+
expect(r).to.eql(test.expected)
|
|
91
91
|
return done()
|
|
92
92
|
})
|
|
93
93
|
})
|