@@ -2171,9 +2171,6 @@ module.exports = (() => {
21712171 }
21722172 break;
21732173 }
2174- default:
2175- console.log(msg);
2176- break;
21772174 }
21782175 }
21792176 break;
@@ -13161,6 +13158,7 @@ describe('when valid prices are formatted', () => {
1316113158});
1316213159
1316313160},{"./../../../../lib/utilities/format/price":21}],73:[function(require,module,exports){
13161+ const Timezones = require('@barchart/common-js/lang/Timezones');
1316413162const formatQuote = require('./../../../../lib/utilities/format/quote');
1316513163describe('When a quote formatter is used (without specifying the clock)', () => {
1316613164 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)', () =>
1323013228 });
1323113229 });
1323213230 describe('and the quote timeUtc is 2:00:01 AM UTC (and exchangeRef is present)', () => {
13231+ let expected = {};
1323313232 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+ }
1323413243 const milliseconds = Date.UTC(2022, 6, 1, 2, 0, 1);
1323513244 quote.time = new Date(1, 2, 3, 4, 5, 6); //ignored
1323613245 quote.timeUtc = new Date(milliseconds);
1323713246 });
1323813247 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 );
1324013249 });
1324113250 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 );
1324313252 });
1324413253 });
1324513254 });
@@ -13613,7 +13622,7 @@ describe('When a time formatter is created (and a "short" 12-hour clock is speci
1361313622 });
1361413623});
1361513624
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){
1361713626const cmdtyView = require('./../../../../../lib/utilities/format/specialized/cmdtyView');
1361813627const Profile = require('./../../../../../lib/marketState/Profile');
1361913628const ZBM2_1500C = new Profile('ZBM2|1500C', '30-Year T-Bond', 'CBOT', '5', 1000, 1);
0 commit comments