]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix buggy test around DST
authorIskren Chernev <iskren.chernev@gmail.com>
Sun, 6 Nov 2016 08:44:13 +0000 (01:44 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Sun, 6 Nov 2016 08:44:13 +0000 (01:44 -0700)
src/locale/bg-x.js [new file with mode: 0644]
src/test/moment/zone_switching.js

diff --git a/src/locale/bg-x.js b/src/locale/bg-x.js
new file mode 100644 (file)
index 0000000..0fb9de0
--- /dev/null
@@ -0,0 +1,5 @@
+import moment from '../moment';
+
+export default moment.defineLocale('bg-x', {
+    parentLocale: 'bg'
+});
index 61ff8213102b07d44c320db849ea284faf06190c..15149f84b78e88c62bf686ecab20c890b861a6c9 100644 (file)
@@ -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;