Skip to content

Commit

Permalink
test: fix test data
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetomir committed Jul 7, 2022
1 parent 0f473f3 commit b076537
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
8 changes: 4 additions & 4 deletions test/cldr-data-compat.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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', () => {
Expand Down
8 changes: 4 additions & 4 deletions test/cldr.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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', () => {
Expand Down

0 comments on commit b076537

Please sign in to comment.