]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Clean up jscs and jshint errors in tests.
authorTim Wood <washwithcare@gmail.com>
Sat, 17 Jan 2015 18:40:26 +0000 (10:40 -0800)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 25 Mar 2015 16:27:42 +0000 (09:27 -0700)
41 files changed:
.jscs.json
.jshintrc [new file with mode: 0644]
Gruntfile.js
test/helpers/each.js
test/moment/add_subtract.js
test/moment/create.js
test/moment/days_in_month.js
test/moment/diff.js
test/moment/duration.js
test/moment/duration_from_moments.js
test/moment/format.js
test/moment/getters_setters.js
test/moment/invalid.js
test/moment/is_after.js
test/moment/is_before.js
test/moment/is_between.js
test/moment/is_date.js
test/moment/is_moment.js
test/moment/is_same.js
test/moment/is_valid.js
test/moment/leapyear.js
test/moment/listers.js
test/moment/locale.js
test/moment/min_max.js
test/moment/mutable.js
test/moment/normalize_units.js
test/moment/parsing_flags.js
test/moment/preparse_postformat.js
test/moment/quarter.js
test/moment/relative_time.js
test/moment/start_end_of.js
test/moment/string_prototype.js
test/moment/utc.js
test/moment/utc_offset.js
test/moment/week_year.js
test/moment/weekday.js
test/moment/weeks.js
test/moment/weeks_in_year.js
test/moment/zone_switching.js
test/moment/zones.js
test/qunit.js

index bc83fdefb6bb80c34f0cefed8d795fd08ef2fddf..3eeef95cd9fbb1fc41fe9ab74d1cacafadf65a6a 100644 (file)
@@ -63,5 +63,6 @@
     "validateQuoteMarks": {
         "mark": "'",
         "escape": true
-    }
+    },
+    "esnext": true
 }
diff --git a/.jshintrc b/.jshintrc
new file mode 100644 (file)
index 0000000..220eb21
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,31 @@
+{
+    "node"     : true,
+    "browser"  : true,
+    "boss"     : false,
+    "curly"    : true,
+    "debug"    : false,
+    "devel"    : false,
+    "eqeqeq"   : true,
+    "eqnull"   : true,
+    "esnext"   : true,
+    "evil"     : false,
+    "forin"    : false,
+    "immed"    : false,
+    "laxbreak" : false,
+    "newcap"   : true,
+    "noarg"    : true,
+    "noempty"  : false,
+    "nonew"    : false,
+    "onevar"   : true,
+    "plusplus" : false,
+    "regexp"   : false,
+    "undef"    : true,
+    "sub"      : true,
+    "strict"   : false,
+    "white"    : true,
+    "es3"      : false,
+    "camelcase" : true,
+    "globals": {
+        "define": false
+    }
+}
index c8adb4adb94a100602fdd05a1b3d454fcf1950cd..36c1273eccf4620af9190d3b2b81538753990a50 100644 (file)
@@ -133,34 +133,7 @@ module.exports = function (grunt) {
                 '!test/browser*.js'
             ],
             options: {
-                'node'     : true,
-                'browser'  : true,
-                'boss'     : false,
-                'curly'    : true,
-                'debug'    : false,
-                'devel'    : false,
-                'eqeqeq'   : true,
-                'eqnull'   : true,
-                'evil'     : false,
-                'forin'    : false,
-                'immed'    : false,
-                'laxbreak' : false,
-                'newcap'   : true,
-                'noarg'    : true,
-                'noempty'  : false,
-                'nonew'    : false,
-                'onevar'   : true,
-                'plusplus' : false,
-                'regexp'   : false,
-                'undef'    : true,
-                'sub'      : true,
-                'strict'   : false,
-                'white'    : true,
-                'es3'      : true,
-                'camelcase' : true,
-                'globals': {
-                    'define': false
-                }
+                jshintrc: true
             }
         },
         jscs: {
index 56c9968bdb86bf907573f44787d0a00047d13a87..7ade6b3081605960a4ccc218a040bc8fc84223e7 100644 (file)
@@ -1,6 +1,8 @@
-export default function (array, callback) {
+function each(array, callback) {
     var i;
     for (i = 0; i < array.length; i++) {
         callback(array[i], i, array);
     }
 }
+
+export default each;
index 2cee7cd33119b9ea49d6ea88046d6c74e16c87cd..18df93ce36eabbf67f1beb166049fffae1b8bf25 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("add and subtract");
+module('add and subtract');
 
 test('add short reverse args', function (assert) {
     var a = moment(), b, c, d;
index f124ece6692b9ed2af5752912e06e1b4e226cc49..301b6888c92fcaf86ed6453f1cf33b29200c9e76 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("create");
+module('create');
 
 test('array', function (assert) {
     assert.ok(moment([2010]).toDate() instanceof Date, '[2010]');
@@ -344,12 +344,12 @@ test('string with array of formats', function (assert) {
         ['MM/DD/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD', 'YYYY-MM-DDTHH:mm:ssZ'])
         .format('YYYY-MM-DD'), '2011-07-01', 'Works for long strings');
 
-        assert.equal(moment('11-02-10', ['MM.DD.YY', 'DD-MM-YY']).format('MM DD YYYY'), '02 11 2010', 'escape RegExp special characters on comparing');
+    assert.equal(moment('11-02-10', ['MM.DD.YY', 'DD-MM-YY']).format('MM DD YYYY'), '02 11 2010', 'escape RegExp special characters on comparing');
 
-        assert.equal(moment('13-10-98', ['DD MM YY', 'DD MM YYYY'])._f, 'DD MM YY', 'use two digit year');
-        assert.equal(moment('13-10-1998', ['DD MM YY', 'DD MM YYYY'])._f, 'DD MM YYYY', 'use four digit year');
+    assert.equal(moment('13-10-98', ['DD MM YY', 'DD MM YYYY'])._f, 'DD MM YY', 'use two digit year');
+    assert.equal(moment('13-10-1998', ['DD MM YY', 'DD MM YYYY'])._f, 'DD MM YYYY', 'use four digit year');
 
-        assert.equal(moment('01', ['MM', 'DD'])._f, 'MM', 'Should use first valid format');
+    assert.equal(moment('01', ['MM', 'DD'])._f, 'MM', 'Should use first valid format');
 });
 
 test('string with array of formats + ISO', function (assert) {
index 6d3179141eb486f86f7c5a99d5a33b8d44de7d39..6108155a753340b0ea74d45bdbb61d00281039e9 100644 (file)
@@ -1,15 +1,15 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
-import each from "../helpers/each";
+import { module, test } from '../qunit';
+import moment from '../../moment';
+import each from '../helpers/each';
 
 module('days in month');
 
 test('days in month', function (assert) {
     each([31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], function (days, i) {
-        var firstDay = moment([2012, i]);
-        var lastDay  = moment([2012, i, days]);
+        var firstDay = moment([2012, i]),
+            lastDay  = moment([2012, i, days]);
         assert.equal(firstDay.daysInMonth(), days, firstDay.format('L') + ' should have ' + days + ' days.');
-        assert.equal( lastDay.daysInMonth(), days,  lastDay.format('L') + ' should have ' + days + ' days.');
+        assert.equal(lastDay.daysInMonth(), days, lastDay.format('L') + ' should have ' + days + ' days.');
     });
 });
 
index c7167391355c225ee320c8238b8d324451b6c8ec..49f1c613a55f941d8d4e9afd151f9f207677e529 100644 (file)
@@ -1,5 +1,5 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
 function equal(assert, a, b, message) {
     assert.ok(Math.abs(a - b) < 0.00000001, '(' + a + ' === ' + b + ') ' + message);
@@ -103,7 +103,7 @@ test('diff month', function (assert) {
 });
 
 test('diff across DST', function (assert) {
-   var dst = dstForYear(2012), a, b, daysInMonth;
+    var dst = dstForYear(2012), a, b, daysInMonth;
     if (!dst) {
         return;
     }
index 12d23f516198bc91a8aaf9028f6586470a1d3d33..14c2420df7717f97f980ce88bac3dbffc4d0771d 100644 (file)
@@ -1,5 +1,5 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
 module('duration');
 
index e7e996526aa7e0a5a73ddb67681c75b1c257018e..a300c1512238795741d6a8c3103eb6bb591d02eb 100644 (file)
@@ -1,5 +1,5 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
 module('duration from moments');
 
index d2d41543ce188dc9c86c2d64bbf3fbd656c3694a..0b2b1d5b0d4c4e6ed262f8b020570e74bdf6c2e0 100644 (file)
@@ -1,5 +1,5 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
 module('format');
 
@@ -119,9 +119,9 @@ test('escaping quotes', function (assert) {
     moment.locale('en');
     var date = moment([2012, 0]);
     assert.equal(date.format('MMM \'YY'), 'Jan \'12', 'Should be able to format with single parenthesis');
-    assert.equal(date.format("MMM 'YY"), 'Jan \'12', 'Should be able to format with double parenthesis');
+    assert.equal(date.format('MMM "YY'), 'Jan "12', 'Should be able to format with double parenthesis');
     assert.equal(date.format('MMM \'YY'), 'Jan \'12', 'Should be able to format with single parenthesis');
-    assert.equal(date.format("MMM 'YY"), 'Jan \'12', 'Should be able to format with double parenthesis');
+    assert.equal(date.format('MMM "YY'), 'Jan "12', 'Should be able to format with double parenthesis');
 });
 
 test('toJSON', function (assert) {
index 0efae228034a76aaeb2e99db7a57e46243768f43..c8c9c967231958bbe0a4c9307a4c2b788de0debe 100644 (file)
@@ -1,5 +1,5 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
 module('getters and setters');
 
index 2bca1944c959e338c1286dd36218317217688e25..599a6ddc922fec511dcce4e7dd7b5f715ac0a6c1 100644 (file)
@@ -1,5 +1,5 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
 module('invalid');
 
index 9b278b0bee5a5cbd5545976804ae30bb3f91eca4..fdd2dc239799b5c3f847704ccc71fe2b313fefab 100644 (file)
@@ -1,5 +1,5 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
 module('is after');
 
index 549757f815338098d28a1ec35ff8062304cf71f1..b9e2beba59a6be605ad905f70f6dbee74aba5a49 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("is before");
+module('is before');
 
 test('is after without units', function (assert) {
     var m = moment(new Date(2011, 3, 2, 3, 4, 5, 10)), mCopy = moment(m);
index dbda57530896a7272bb9aa8e9629046558e45471..a114b3cd0f0001fbdbf91ab10fb03a6baaea6452 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("is between");
+module('is between');
 
 test('is between without units', function (assert) {
     var m = moment(new Date(2011, 3, 2, 3, 4, 5, 10)), mCopy = moment(m);
index 52647a1cd682a730d89078be77fa714b84ca10c7..7a5065d8d34b3fa593938aed263bb55f58e3a529 100644 (file)
@@ -1,11 +1,11 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("is date");
+module('is date');
 
 test('isDate recognizes Date objects', function (assert) {
     assert.ok(moment.isDate(new Date()), 'no args (now)');
-    assert.ok(moment.isDate(new Date([2014, 02, 15])), 'array args');
+    assert.ok(moment.isDate(new Date([2014, 2, 15])), 'array args');
     assert.ok(moment.isDate(new Date('2014-03-15')), 'string args');
     assert.ok(moment.isDate(new Date('does NOT look like a date')), 'invalid date');
 });
index 502d13cfbe913b2f51dcf37b5e9dff45c797ff5d..9ef83548c5f201d43520b47492e9a63c8a54d3e3 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("is moment");
+module('is moment');
 
 test('is moment object', function (assert) {
     var MyObj = function () {},
index 8b0523043fd7758ad2243936583bdb3ce1bddd0f..31794ce78495dd0cea8adfab0d6e6ec03c5aeec4 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("is same");
+module('is same');
 
 test('is same without units', function (assert) {
     var m = moment(new Date(2011, 3, 2, 3, 4, 5, 10)), mCopy = moment(m);
index b475f01b991390fd419fcba5dc72bfb330a0ac9e..77ed1389b979b5495b8ad6b5a0f182e7f7d25901 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("is valid");
+module('is valid');
 
 test('array bad month', function (assert) {
     assert.equal(moment([2010, -1]).isValid(), false, 'month -1 invalid');
@@ -135,7 +135,7 @@ test('invalidAt', function (assert) {
     assert.equal(moment([2000, 12]).invalidAt(), 1, 'month 12 is invalid: 0-11');
     assert.equal(moment([2000, 1, 30]).invalidAt(), 2, '30 is not a valid february day');
     assert.equal(moment([2000, 1, 29, 25]).invalidAt(), 3, '25 is invalid hour');
-    assert.equal(moment([2000, 1, 29, 24, 01]).invalidAt(), 3, '24:01 is invalid hour');
+    assert.equal(moment([2000, 1, 29, 24,  1]).invalidAt(), 3, '24:01 is invalid hour');
     assert.equal(moment([2000, 1, 29, 23, 60]).invalidAt(), 4, '60 is invalid minute');
     assert.equal(moment([2000, 1, 29, 23, 59, 60]).invalidAt(), 5, '60 is invalid second');
     assert.equal(moment([2000, 1, 29, 23, 59, 59, 1000]).invalidAt(), 6, '1000 is invalid millisecond');
index f5d8efa70ff06547e84d597022e00e60e88783f9..861a7aaa0e6ed4c087418d9becbde75a70dd8fed 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("leap year");
+module('leap year');
 
 test('leap year', function (assert) {
     assert.equal(moment([2010, 0, 1]).isLeapYear(), false, '2010');
index ad6f0f46628afdaab8f7309de6a005105e041795..242ae3402102cbfefcca85eecb4385fbd06bbab9 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("listers");
+module('listers');
 
 test('default', function (assert) {
     assert.deepEqual(moment.months(), ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']);
index e95a0011f1a06b1f84d425b2ab422091419493d1..3a7972315149b7fe0c87025950906bf88466b72b 100644 (file)
@@ -1,33 +1,33 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
-import each from "../helpers/each";
+import { module, test } from '../qunit';
+import moment from '../../moment';
+import each from '../helpers/each';
 
-module("locale", {
+module('locale', {
     setup : function () {
         // TODO: Remove once locales are switched to ES6
         each([{
-            name: "en-gb",
+            name: 'en-gb',
             data: {}
         }, {
-            name: "en-ca",
+            name: 'en-ca',
             data: {}
         }, {
-            name: "es",
+            name: 'es',
             data: {
-                relativeTime: { past: 'hace %s', s: 'unos segundos', d: 'un día' },
+                relativeTime: {past: 'hace %s', s: 'unos segundos', d: 'un día'},
                 months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_')
             }
         }, {
-            name: "fr",
+            name: 'fr',
             data: {}
         }, {
-            name: "fr-ca",
+            name: 'fr-ca',
             data: {}
         }, {
-            name: "it",
+            name: 'it',
             data: {}
         }, {
-            name: "zh-cn",
+            name: 'zh-cn',
             data: {
                 months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_')
             }
index f167a7a275187b80cf5f78bd583d35cf49dec304..62054d6d681bc79d3eebf7452975a8188228665d 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("min max");
+module('min max');
 
 test('min', function (assert) {
     var now = moment(),
index 058f046a031701ad072d1973cf9ee895469fe5a9..2730221bc86928781b618744db6f7b8975dd71eb 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("mutable");
+module('mutable');
 
 test('manipulation methods', function (assert) {
     var m = moment();
index 6e6f568fdaf3fb703bcbd1cd00dfdf4a046a1c88..56d96346944c58807b55f1eaed82ee76603518e6 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("normalize units");
+module('normalize units');
 
 test('normalize units', function (assert) {
     var fullKeys = ['year', 'quarter', 'month', 'isoWeek', 'week', 'day', 'hour', 'minute', 'second', 'millisecond', 'date', 'dayOfYear', 'weekday', 'isoWeekday', 'weekYear', 'isoWeekYear'],
index ebc5bab5fdc82d7203d75d9374e3ea0638359e8b..eb5eea622f743f5b98696012d116c2dc5ff9a16b 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("parsing flags");
+module('parsing flags');
 
 function flags () {
     return moment.apply(null, arguments).parsingFlags();
index cb157d5c5c824caad93dfe3646990530aa0bd8ca..87c2fe010d4b02c1330916a8ecccf173c8605089 100644 (file)
@@ -1,33 +1,32 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
 var symbolMap = {
-    '1': '!',
-    '2': '@',
-    '3': '#',
-    '4': '$',
-    '5': '%',
-    '6': '^',
-    '7': '&',
-    '8': '*',
-    '9': '(',
-    '0': ')'
-};
+        '1': '!',
+        '2': '@',
+        '3': '#',
+        '4': '$',
+        '5': '%',
+        '6': '^',
+        '7': '&',
+        '8': '*',
+        '9': '(',
+        '0': ')'
+    },
+    numberMap = {
+        '!': '1',
+        '@': '2',
+        '#': '3',
+        '$': '4',
+        '%': '5',
+        '^': '6',
+        '&': '7',
+        '*': '8',
+        '(': '9',
+        ')': '0'
+    };
 
-var numberMap = {
-    '!': '1',
-    '@': '2',
-    '#': '3',
-    '$': '4',
-    '%': '5',
-    '^': '6',
-    '&': '7',
-    '*': '8',
-    '(': '9',
-    ')': '0'
-};
-
-module("preparse and postformat", {
+module('preparse and postformat', {
     setup: function () {
         moment.locale('symbol', {
             preparse: function (string) {
index 5235f47459afc0e1cba42a223ce73ba8f447d0e0..0c1da62970b389c93caac9011e3c55f2e65d3a38 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("quarter");
+module('quarter');
 
 test('library quarter getter', function (assert) {
     assert.equal(moment([1985,  1,  4]).quarter(), 1, 'Feb  4 1985 is Q1');
index 360068db0c52f76120caf41537bbe2de9da76733..359037b1119d3a5e37e7d53ea8b3e608858fc601 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("relative time");
+module('relative time');
 
 test('default thresholds', function (assert) {
     var a = moment();
index 4f3afbf12d8104386fc07e88f3a7a7c85c67df0c..8773d1bf4826998c92cc80ed4b74c478fdcd0845 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("start and end of units");
+module('start and end of units');
 
 test('start of year', function (assert) {
     var m = moment(new Date(2011, 1, 2, 3, 4, 5, 6)).startOf('year'),
index f47949437bbdda3d80095930725f406e4aa3ab94..8300f84e53aef7c0c64231c2e36d595b830ed414 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("string prototype");
+module('string prototype');
 
 test('string prototype overrides call', function (assert) {
     var prior = String.prototype.call, b;
index c4d9812cee2871b5cdea913d0042386b044b6ec9..00ad215967e7d00b257b6457de8529745380750a 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("utc");
+module('utc');
 
 test('utc and local', function (assert) {
     var m = moment(Date.UTC(2011, 1, 2, 3, 4, 5, 6)), offset, expected;
index ab4b9f24391342636d88719ea3db556a63b460d3..beb6837a93e5b57043f09d298da435151c37cd5e 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("utc offset");
+module('utc offset');
 
 test('setter / getter blackbox', function (assert) {
     var m = moment([2010]);
index 5c6414a38aa2e5b3f5a8bb1917000872cc7fb682..9918b40d946ddfb0686dcc60340d7c7d95be2c07 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("week year");
+module('week year');
 
 test('iso week year', function (assert) {
     // Some examples taken from http://en.wikipedia.org/wiki/ISO_week
index 512e0bf7766c720b694feec26c9a6450b2a03b64..ae796f589ba965934f67c42d38a44b3a4e82a684 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("week day");
+module('week day');
 
 test('iso weekday', function (assert) {
     var i;
index 930cb34e8d32705298508d4d7a57b581b78c6cde..29dbed8a1779599855c4c678032e282c4d06f4a1 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("weeks");
+module('weeks');
 
 test('day of year', function (assert) {
     assert.equal(moment([2000,  0,  1]).dayOfYear(),   1, 'Jan  1 2000 should be day 1 of the year');
index 5febd1d55901ffa02e6a309b4b490e7c9f776698..8f2c8167f3e63da0ebabb1f6de2a08421c9f885e 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("weeks in year");
+module('weeks in year');
 
 test('isoWeeksInYear', function (assert) {
     assert.equal(moment([2004]).isoWeeksInYear(), 53, '2004 has 53 iso weeks');
index c263ac4fda7af06600bdd759cb42e2a43cc63765..7d8460640b4dbd86b9ca5a3a0b5280bfa9c26cc5 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("zone switching");
+module('zone switching');
 
 test('local to utc, keepLocalTime = true', function (assert) {
     var m = moment(),
index 39cd10fac9b7673f5b9004a6e9d1c2a9e94ba0b6..0d9a2e1b354479ab2b353c0b1fb7691bfce2ba4c 100644 (file)
@@ -1,7 +1,7 @@
-import { module, test } from "../qunit";
-import moment from "../../moment";
+import { module, test } from '../qunit';
+import moment from '../../moment';
 
-module("zones");
+module('zones');
 
 test('set zone', function (assert) {
     var zone = moment();
index 59d50d73592b4a9303171d707ecdbfdd85691bbf..bdf37c0083b3ba5c965602081bc0e592d9fcd8a8 100644 (file)
@@ -1,6 +1,6 @@
 /*global QUnit:false*/
 
-import moment from "../moment";
+import moment from '../moment';
 
 export var test = QUnit.test;