tickbin-entry-parser
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -86,5 +86,5 @@ 'use strict'; | ||
this.start = opts.start; | ||
this.startArr = (0, _moment2.default)(this.start).toArray(); | ||
this.startArr = (0, _moment2.default)(this.start).utc().toArray(); | ||
this.end = opts.end; | ||
this.endArr = (0, _moment2.default)(this.end).toArray(); | ||
this.endArr = (0, _moment2.default)(this.end).utc().toArray(); | ||
this.time = opts.text; | ||
@@ -91,0 +91,0 @@ this.duration = new _duration2.default(this.start, this.end); |
@@ -252,4 +252,4 @@ 'use strict'; | ||
t.deepEquals(json.tags, [].concat(_toConsumableArray(e.tags)), 'tags array'); | ||
t.ok((0, _moment2.default)(json.startArr).isSame(json.start), 'start and startArr are same date'); | ||
t.ok((0, _moment2.default)(json.endArr).isSame(json.end), 'end and endArr are same date'); | ||
t.ok(_moment2.default.utc(json.startArr).isSame(json.start), 'start and startArr are same date'); | ||
t.ok(_moment2.default.utc(json.endArr).isSame(json.end), 'end and endArr are same date'); | ||
t.ok(json.startArr instanceof Array, 'startArr is an array'); | ||
@@ -256,0 +256,0 @@ t.ok(json.endArr instanceof Array, 'endArr is an array'); |
{ | ||
"name": "tickbin-entry-parser", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "parse strings into entries", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77890
19
887