@trackunit/react-test-setup 1.11.4 → 1.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -894,10 +894,10 @@ const setupTranslations = () => {
894
894
  };
895
895
  const i18n = { language: "en", exists: () => true };
896
896
  const useMock = [
897
- (k, extra) => k + (extra ? " props: " + JSON.stringify(extra) : ""),
897
+ (k, extra) => k + (extra ? ` props: ${JSON.stringify(extra)}` : ""),
898
898
  i18n,
899
899
  ];
900
- useMock.t = (k, extra) => k + (extra ? " props: " + JSON.stringify(extra) : "");
900
+ useMock.t = (k, extra) => k + (extra ? ` props: ${JSON.stringify(extra)}` : "");
901
901
  useMock.i18n = i18n;
902
902
  const useTranslation = () => useMock;
903
903
  const Trans = ({ i18nKey, components, children }) => {
package/index.esm.js CHANGED
@@ -873,10 +873,10 @@ const setupTranslations = () => {
873
873
  };
874
874
  const i18n = { language: "en", exists: () => true };
875
875
  const useMock = [
876
- (k, extra) => k + (extra ? " props: " + JSON.stringify(extra) : ""),
876
+ (k, extra) => k + (extra ? ` props: ${JSON.stringify(extra)}` : ""),
877
877
  i18n,
878
878
  ];
879
- useMock.t = (k, extra) => k + (extra ? " props: " + JSON.stringify(extra) : "");
879
+ useMock.t = (k, extra) => k + (extra ? ` props: ${JSON.stringify(extra)}` : "");
880
880
  useMock.i18n = i18n;
881
881
  const useTranslation = () => useMock;
882
882
  const Trans = ({ i18nKey, components, children }) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trackunit/react-test-setup",
3
3
  "description": "Test setup utilities for React applications",
4
- "version": "1.11.4",
4
+ "version": "1.11.6",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
7
7
  "engines": {