From: Raphael Amorim Date: Thu, 16 Apr 2015 03:14:49 +0000 (-0300) Subject: update tests in moment/locale for (es) nomenclature lastest changes X-Git-Tag: 2.10.3~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76b4d6e7070ebad41540c9ed8074b8886d3682c7;p=thirdparty%2Fmoment.git update tests in moment/locale for (es) nomenclature lastest changes --- diff --git a/src/test/moment/locale.js b/src/test/moment/locale.js index 3a7972315..2cab7edba 100644 --- a/src/test/moment/locale.js +++ b/src/test/moment/locale.js @@ -135,7 +135,7 @@ test('library localeData', function (assert) { assert.equal(moment.localeData().months(jan), 'January', 'no arguments returns global'); assert.equal(moment.localeData('zh-cn').months(jan), '一月', 'a string returns the locale based on key'); - assert.equal(moment.localeData(moment().locale('es')).months(jan), 'enero', 'if you pass in a moment it uses the moment\'s locale'); + assert.equal(moment.localeData(moment().locale('es')).months(jan), 'Enero', 'if you pass in a moment it uses the moment\'s locale'); }); test('library deprecations', function (assert) { @@ -169,7 +169,7 @@ test('instance locale method', function (assert) { moment.locale('en'); assert.equal(moment([2012, 5, 6]).format('MMMM'), 'June', 'Normally default to global'); - assert.equal(moment([2012, 5, 6]).locale('es').format('MMMM'), 'junio', 'Use the instance specific locale'); + assert.equal(moment([2012, 5, 6]).locale('es').format('MMMM'), 'Junio', 'Use the instance specific locale'); assert.equal(moment([2012, 5, 6]).format('MMMM'), 'June', 'Using an instance specific locale does not affect other moments'); }); @@ -193,9 +193,9 @@ test('instance getter locale substrings', function (assert) { test('instance locale persists with manipulation', function (assert) { moment.locale('en'); - assert.equal(moment([2012, 5, 6]).locale('es').add({days: 1}).format('MMMM'), 'junio', 'With addition'); - assert.equal(moment([2012, 5, 6]).locale('es').day(0).format('MMMM'), 'junio', 'With day getter'); - assert.equal(moment([2012, 5, 6]).locale('es').endOf('day').format('MMMM'), 'junio', 'With endOf'); + assert.equal(moment([2012, 5, 6]).locale('es').add({days: 1}).format('MMMM'), 'Junio', 'With addition'); + assert.equal(moment([2012, 5, 6]).locale('es').day(0).format('MMMM'), 'Junio', 'With day getter'); + assert.equal(moment([2012, 5, 6]).locale('es').endOf('day').format('MMMM'), 'Junio', 'With endOf'); }); test('instance locale persists with cloning', function (assert) { @@ -205,8 +205,8 @@ test('instance locale persists with cloning', function (assert) { b = a.clone(), c = moment(a); - assert.equal(b.format('MMMM'), 'junio', 'using moment.fn.clone()'); - assert.equal(b.format('MMMM'), 'junio', 'using moment()'); + assert.equal(b.format('MMMM'), 'Junio', 'using moment.fn.clone()'); + assert.equal(b.format('MMMM'), 'Junio', 'using moment()'); }); test('duration locale method', function (assert) {