@etsoo/materialui 1.4.25 → 1.4.26

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.
@@ -107,3 +107,20 @@ test("Test for properties", () => {
107
107
 
108
108
  expect(root.innerHTML).toContain(result.title);
109
109
  });
110
+
111
+ test("Test for alertResult", () => {
112
+ const result: IActionResult = {
113
+ ok: false,
114
+ type: "TokenExpired",
115
+ title: "您的令牌已过期",
116
+ data: {}
117
+ };
118
+
119
+ act(() => {
120
+ app.alertResult(result);
121
+ });
122
+
123
+ expect(root.innerHTML).toContain(
124
+ '<span style="font-size: 9px;">(TokenExpired)</span>'
125
+ );
126
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.4.25",
3
+ "version": "1.4.26",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -35,9 +35,9 @@
35
35
  "@emotion/css": "^11.13.5",
36
36
  "@emotion/react": "^11.13.5",
37
37
  "@emotion/styled": "^11.13.5",
38
- "@etsoo/appscript": "^1.5.67",
38
+ "@etsoo/appscript": "^1.5.68",
39
39
  "@etsoo/notificationbase": "^1.1.54",
40
- "@etsoo/react": "^1.8.2",
40
+ "@etsoo/react": "^1.8.3",
41
41
  "@etsoo/shared": "^1.2.55",
42
42
  "@mui/icons-material": "^6.1.8",
43
43
  "@mui/material": "^6.1.8",