var r;
r = moment(m.format(format), format);
assert.equal(r.month(), m.month(), 'month ' + i + ' fmt ' + format);
- if (locale !== 'ka') {
- r = moment(m.format(format).toLocaleUpperCase(), format);
- assert.equal(
- r.month(),
- m.month(),
- 'month ' + i + ' fmt ' + format + ' upper'
- );
- }
+ r = moment(m.format(format).toLocaleUpperCase(), format);
+ assert.equal(r.month(), m.month(), 'month ' + i + ' fmt ' + format + ' upper');
r = moment(m.format(format).toLocaleLowerCase(), format);
assert.equal(
r.month(),
);
r = moment(m.format(format), format, true);
- assert.equal(
- r.month(),
- m.month(),
- 'month ' + i + ' fmt ' + format + ' strict'
- );
- if (locale !== 'ka') {
- r = moment(m.format(format).toLocaleUpperCase(), format, true);
- assert.equal(
- r.month(),
- m.month(),
- 'month ' + i + ' fmt ' + format + ' upper strict'
- );
- }
+ assert.equal(r.month(), m.month(), 'month ' + i + ' fmt ' + format + ' strict');
+ r = moment(m.format(format).toLocaleUpperCase(), format, true);
+ assert.equal(r.month(), m.month(), 'month ' + i + ' fmt ' + format + ' upper strict');
r = moment(m.format(format).toLocaleLowerCase(), format, true);
assert.equal(
r.month(),
m.toISOString();
r = moment(m.format(format), format);
assert.equal(r.weekday(), m.weekday(), baseMsg);
- if (locale !== 'ka') {
- r = moment(m.format(format).toLocaleUpperCase(), format);
- assert.equal(r.weekday(), m.weekday(), baseMsg + ' upper');
- }
+ r = moment(m.format(format).toLocaleUpperCase(), format);
+ assert.equal(r.weekday(), m.weekday(), baseMsg + ' upper');
r = moment(m.format(format).toLocaleLowerCase(), format);
assert.equal(r.weekday(), m.weekday(), baseMsg + ' lower');
r = moment(m.format(format), format, true);
assert.equal(r.weekday(), m.weekday(), baseMsg + ' strict');
- if (locale !== 'ka') {
- r = moment(m.format(format).toLocaleUpperCase(), format, true);
- assert.equal(
- r.weekday(),
- m.weekday(),
- baseMsg + ' upper strict'
- );
- }
+ r = moment(m.format(format).toLocaleUpperCase(), format, true);
+ assert.equal(r.weekday(), m.weekday(), baseMsg + ' upper strict');
r = moment(m.format(format).toLocaleLowerCase(), format, true);
assert.equal(r.weekday(), m.weekday(), baseMsg + ' lower strict');
}
equalTest(tests[i][1], 'MMMM', i);
equalTest(tests[i][0].toLocaleLowerCase(), 'MMMM', i);
equalTest(tests[i][1].toLocaleLowerCase(), 'MMMM', i);
- // the last two are broken until https://github.com/nodejs/node/issues/22518 is fixed
- // equalTest(tests[i][0].toLocaleUpperCase(), 'MMMM', i);
- // equalTest(tests[i][1].toLocaleUpperCase(), 'MMMM', i);
+ equalTest(tests[i][0].toLocaleUpperCase(), 'MMMM', i);
+ equalTest(tests[i][1].toLocaleUpperCase(), 'MMMM', i);
}
});