@@ -2171,9 +2171,6 @@ module.exports = (() => {
2171
2171
}
2172
2172
break;
2173
2173
}
2174
- default:
2175
- console.log(msg);
2176
- break;
2177
2174
}
2178
2175
}
2179
2176
break;
@@ -13161,6 +13158,7 @@ describe('when valid prices are formatted', () => {
13161
13158
});
13162
13159
13163
13160
},{"./../../../../lib/utilities/format/price":21}],73:[function(require,module,exports){
13161
+ const Timezones = require('@barchart/common-js/lang/Timezones');
13164
13162
const formatQuote = require('./../../../../lib/utilities/format/quote');
13165
13163
describe('When a quote formatter is used (without specifying the clock)', () => {
13166
13164
describe('and a quote is formatted (with no "flag" and a "lastPrice" value)', () => {
@@ -13230,16 +13228,27 @@ describe('When a quote formatter is used (without specifying the clock)', () =>
13230
13228
});
13231
13229
});
13232
13230
describe('and the quote timeUtc is 2:00:01 AM UTC (and exchangeRef is present)', () => {
13231
+ let expected = {};
13233
13232
beforeEach(() => {
13233
+ if (Timezones.parse('America/New_York').getIsDaylightSavingsTime()) {
13234
+ expected.chicago = '22:00:01';
13235
+ } else {
13236
+ expected.chicago = '21:00:01';
13237
+ }
13238
+ if (Timezones.parse('America/Denver').getIsDaylightSavingsTime()) {
13239
+ expected.denver = '20:00:01';
13240
+ } else {
13241
+ expected.denver = '19:00:01';
13242
+ }
13234
13243
const milliseconds = Date.UTC(2022, 6, 1, 2, 0, 1);
13235
13244
quote.time = new Date(1, 2, 3, 4, 5, 6); //ignored
13236
13245
quote.timeUtc = new Date(milliseconds);
13237
13246
});
13238
13247
it('the formatter outputs "22:00:01" (when asked to display time in the "America/New_York" timezone)', () => {
13239
- expect(formatQuote(quote, false, false, "America/New_York")).toEqual('22:00:01' );
13248
+ expect(formatQuote(quote, false, false, "America/New_York")).toEqual(expected.chicago );
13240
13249
});
13241
13250
it('the formatter outputs "20:00:01" (when asked to display time in the "America/Denver" timezone)', () => {
13242
- expect(formatQuote(quote, false, false, "America/Denver")).toEqual('20:00:01' );
13251
+ expect(formatQuote(quote, false, false, "America/Denver")).toEqual(expected.denver );
13243
13252
});
13244
13253
});
13245
13254
});
@@ -13613,7 +13622,7 @@ describe('When a time formatter is created (and a "short" 12-hour clock is speci
13613
13622
});
13614
13623
});
13615
13624
13616
- },{"./../../../../lib/utilities/format/quote":22}],74:[function(require,module,exports){
13625
+ },{"./../../../../lib/utilities/format/quote":22,"@barchart/common-js/lang/Timezones":36 }],74:[function(require,module,exports){
13617
13626
const cmdtyView = require('./../../../../../lib/utilities/format/specialized/cmdtyView');
13618
13627
const Profile = require('./../../../../../lib/marketState/Profile');
13619
13628
const ZBM2_1500C = new Profile('ZBM2|1500C', '30-Year T-Bond', 'CBOT', '5', 1000, 1);
0 commit comments