moment-business-time
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -239,3 +239,3 @@ var moment = require('moment'), | ||
if (unit === 'day') { | ||
diff++; | ||
diff--; | ||
} else { | ||
@@ -248,3 +248,3 @@ diff += from.diff(openingTimes(from)[1], unit, true); | ||
if (unit === 'day') { | ||
diff++; | ||
diff--; | ||
} else { | ||
@@ -251,0 +251,0 @@ diff += from.diff(to, unit, true); |
{ | ||
"name": "moment-business-time", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "Query and manipulate moment objects within the context of business/working hours", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -390,4 +390,4 @@ var moment = require('../lib/business-hours'); | ||
from.workingDiff(to, 'days').should.equal(16); | ||
to.workingDiff(from, 'days').should.equal(-16); | ||
from.workingDiff(to, 'days').should.equal(-16); | ||
to.workingDiff(from, 'days').should.equal(16); | ||
}); | ||
@@ -394,0 +394,0 @@ |
Sorry, the diff of this file is not supported yet
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
34013