Skip to content

Commit

Permalink
Release. Bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
bryaningl3 committed Feb 24, 2023
1 parent 5239472 commit be2dd0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@barchart/common-js",
"version": "4.25.0",
"version": "4.25.1",
"description": "Library of common JavaScript utilities",
"author": {
"name": "Bryan Ingle",
Expand Down
13 changes: 11 additions & 2 deletions test/SpecRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -3953,11 +3953,13 @@ module.exports = (() => {
})();

},{"./assert":30,"./is":36,"moment-timezone":56}],28:[function(require,module,exports){
const getTimezoneOffset = require('date-fns-tz/getTimezoneOffset');
const assert = require('./assert'),
Enum = require('./Enum'),
is = require('./is'),
timezone = require('./timezone');
const getTimezoneOffsetA = require('date-fns-tz/getTimezoneOffset'),
getTimezoneOffsetB = require('date-fns-tz/getTimezoneOffset').default;
const getTimezoneOffset = is.fn(getTimezoneOffsetB) ? getTimezoneOffsetB : getTimezoneOffsetA;
module.exports = (() => {
'use strict';

Expand Down Expand Up @@ -18959,11 +18961,18 @@ describe('When adding (or subtracting) months to (or from) a Day', () => {
expect(then.month).toEqual(2);
expect(then.day).toEqual(28);
});
it('should return April 30, 2018 when adding a month to March 30, 2018', () => {
it('should return April 29, 2018 when adding a month to March 29, 2018', () => {
const now = new Day(2018, 3, 29);
const then = now.addMonths(1);
expect(then.year).toEqual(2018);
expect(then.month).toEqual(4);
expect(then.day).toEqual(29);
});
it('should return April 30, 2018 when subtracting a month from May 31, 2018', () => {
const now = new Day(2018, 5, 31);
const then = now.subtractMonths(1);
expect(then.year).toEqual(2018);
expect(then.month).toEqual(4);
expect(then.day).toEqual(30);
});
});
Expand Down

0 comments on commit be2dd0f

Please sign in to comment.