From: Iskren Chernev Date: Sun, 6 Nov 2016 08:44:13 +0000 (-0700) Subject: Fix buggy test around DST X-Git-Tag: 2.16.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3891698e424f38f2bd82b56ac9f479f553f7250f;p=thirdparty%2Fmoment.git Fix buggy test around DST --- diff --git a/src/locale/bg-x.js b/src/locale/bg-x.js new file mode 100644 index 000000000..0fb9de0fb --- /dev/null +++ b/src/locale/bg-x.js @@ -0,0 +1,5 @@ +import moment from '../moment'; + +export default moment.defineLocale('bg-x', { + parentLocale: 'bg' +}); diff --git a/src/test/moment/zone_switching.js b/src/test/moment/zone_switching.js index 61ff82131..15149f84b 100644 --- a/src/test/moment/zone_switching.js +++ b/src/test/moment/zone_switching.js @@ -67,13 +67,14 @@ test('utc to local, keepLocalTime = false', function (assert) { }); test('zone to local, keepLocalTime = true', function (assert) { - test.expectedDeprecations('moment().zone'); // Don't test near the spring DST transition if (isNearSpringDST()) { expect(0); return; } + test.expectedDeprecations('moment().zone'); + var m = moment(), fmt = 'YYYY-DD-MM HH:mm:ss', z;