diff --git a/package.json b/package.json index 11f8dac9..49028976 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "scripts": { "build-package": "gulp build-rollup-package build-cdn", "test": "jest -- ./test", + "test:watch": "jest --watch -- ./test", "locale-tests": "jest -- ./locale-tests", + "locale-tests:watch": "jest --watch -- ./locale-tests", "lint": "eslint --quiet -- ./src ./test ./locale-tests/*.js", "semantic-release": "semantic-release pre && semantic-prerelease publish && semantic-release post" }, diff --git a/test/cldr-data-compat.test.js b/test/cldr-data-compat.test.js index a4ba1626..4133d810 100644 --- a/test/cldr-data-compat.test.js +++ b/test/cldr-data-compat.test.js @@ -489,8 +489,8 @@ describe('dateFieldName', () => { it('should return placeholder for the weekday type', () => { expect(dateFieldName({ type: 'weekday', nameType: 'wide' })).toEqual("day of the week"); - expect(dateFieldName({ type: 'weekday', nameType: 'narrow' })).toEqual("day of the week"); - expect(dateFieldName({ type: 'weekday', nameType: 'short' })).toEqual("day of the week"); + expect(dateFieldName({ type: 'weekday', nameType: 'narrow' })).toEqual("day of wk."); + expect(dateFieldName({ type: 'weekday', nameType: 'short' })).toEqual("day of wk."); }); it('should return localized placeholder for the weekday type', () => { @@ -543,8 +543,8 @@ describe('dateFieldName', () => { it('should return placeholder for zone type', () => { expect(dateFieldName({ type: 'zone', nameType: 'wide' })).toEqual("time zone"); - expect(dateFieldName({ type: 'zone', nameType: 'narrow' })).toEqual("time zone"); - expect(dateFieldName({ type: 'zone', nameType: 'short' })).toEqual("time zone"); + expect(dateFieldName({ type: 'zone', nameType: 'narrow' })).toEqual("zone"); + expect(dateFieldName({ type: 'zone', nameType: 'short' })).toEqual("zone"); }); it('should not support non-existent units of time as fieldName type', () => { diff --git a/test/cldr.test.js b/test/cldr.test.js index 78e2e8b1..8961df5d 100644 --- a/test/cldr.test.js +++ b/test/cldr.test.js @@ -536,8 +536,8 @@ describe('dateFieldName', () => { it('should return placeholder for the weekday type', () => { expect(dateFieldName({ type: 'weekday', nameType: 'wide' })).toEqual("day of the week"); - expect(dateFieldName({ type: 'weekday', nameType: 'narrow' })).toEqual("day of the week"); - expect(dateFieldName({ type: 'weekday', nameType: 'short' })).toEqual("day of the week"); + expect(dateFieldName({ type: 'weekday', nameType: 'narrow' })).toEqual("day of wk."); + expect(dateFieldName({ type: 'weekday', nameType: 'short' })).toEqual("day of wk."); }); it('should return localized placeholder for the weekday type', () => { @@ -590,8 +590,8 @@ describe('dateFieldName', () => { it('should return placeholder for zone type', () => { expect(dateFieldName({ type: 'zone', nameType: 'wide' })).toEqual("time zone"); - expect(dateFieldName({ type: 'zone', nameType: 'narrow' })).toEqual("time zone"); - expect(dateFieldName({ type: 'zone', nameType: 'short' })).toEqual("time zone"); + expect(dateFieldName({ type: 'zone', nameType: 'narrow' })).toEqual("zone"); + expect(dateFieldName({ type: 'zone', nameType: 'short' })).toEqual("zone"); }); it('should not support non-existent units of time as fieldName type', () => {