Skip to content

Commit

Permalink
A few minor test fixes (#658)
Browse files Browse the repository at this point in the history
* Fixes Croatian pluralization, which seemed to be legitimately broken
* Workaround for facebook/react-native#42109
* Ensure `npm test` runs with UTC time zone
  • Loading branch information
kueda authored Jan 12, 2024
1 parent a738ac0 commit 2126f0d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ i18n.enableFallback = true;
}
return ["other"];
} );
i18n.pluralization.register( "cs", ( _i18n, count ) => { return westSlavic( count, "cs" ); } );
i18n.pluralization.register( "fr", ( _i18n, count ) => { return oneUptoTwoOther( count, "fr" ); } );
i18n.pluralization.register( "hr", oneFewOther );
i18n.pluralization.register( "cs", ( _i18n, count ) => westSlavic( count, "cs" ) );
i18n.pluralization.register( "fr", ( _i18n, count ) => oneUptoTwoOther( count, "fr" ) );
i18n.pluralization.register( "hr", ( _i18n, count ) => oneFewOther( count, "hr" ) );
i18n.pluralization.register( "id", other );
i18n.pluralization.register( "ja", other );
i18n.pluralization.register( "ko", other );
Expand Down Expand Up @@ -273,9 +273,9 @@ i18n.enableFallback = true;
}
return ["other"];
} );
i18n.pluralization.register( "ru", ( _i18n, count ) => { return eastSlavic( count, "ru" ); } );
i18n.pluralization.register( "sk", ( _i18n, count ) => { return westSlavic( count, "sk" ); } );
i18n.pluralization.register( "uk", ( _i18n, count ) => { return eastSlavic( count, "uk" ); } );
i18n.pluralization.register( "ru", ( _i18n, count ) => eastSlavic( count, "ru" ) );
i18n.pluralization.register( "sk", ( _i18n, count ) => westSlavic( count, "sk" ) );
i18n.pluralization.register( "uk", ( _i18n, count ) => eastSlavic( count, "uk" ) );
i18n.pluralization.register( "zh", other );
i18n.pluralization.register( "zh-CN", other );
i18n.pluralization.register( "zh-HK", other );
Expand Down
4 changes: 2 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
boost: 57d2868c099736d80fcd648bf211b4431e51a558
boost: 0a937fbcfdd646fca221c4f1d9750d7ccfdfc2dc
BVLinearGradient: 880f91a7854faff2df62518f0281afb1c60d49a3
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
Expand Down Expand Up @@ -896,4 +896,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 58e8d3aa699d6b32fb4c1e764273a8b0beb6c57e

COCOAPODS: 1.12.1
COCOAPODS: 1.14.3
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"lint": "npm run lint:eslint",
"lint:eslint": "eslint .",
"lint:flow": "flow check",
"test": "jest",
"test:watch": "jest --watch",
"test": "TZ=UTC jest",
"test:watch": "TZ=UTC jest --watch",
"prepare": "husky install",
"postinstall": "patch-package",
"e2e:build": "npx detox build --configuration ios.sim.release",
Expand Down

0 comments on commit 2126f0d

Please sign in to comment.