fix: unit tests error, caused by #5442 (#5448)

* fix: unit tests error, caused by #5442

* fix: unit test errors  casued by #5442
This commit is contained in:
gchust 2024-10-17 21:18:25 +08:00 committed by GitHub
parent 50056439d9
commit d158585efd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -467,7 +467,7 @@ describe('Application', () => {
.toMatchInlineSnapshot(` .toMatchInlineSnapshot(`
[ [
{ {
"label": "TestComponent", "label": "{{t("TestComponent")}}",
"useProps": [Function], "useProps": [Function],
"value": "TestComponent", "value": "TestComponent",
}, },

View File

@ -156,7 +156,7 @@ describe('CollectionFieldInterfaceManager', () => {
expect(fieldInterface.componentOptions).toMatchInlineSnapshot(` expect(fieldInterface.componentOptions).toMatchInlineSnapshot(`
[ [
{ {
"label": "A", "label": "{{t("A")}}",
"useProps": [Function], "useProps": [Function],
"value": "A", "value": "A",
}, },
@ -190,7 +190,7 @@ describe('CollectionFieldInterfaceManager', () => {
expect(fieldInterface.componentOptions).toMatchInlineSnapshot(` expect(fieldInterface.componentOptions).toMatchInlineSnapshot(`
[ [
{ {
"label": "A", "label": "{{t("A")}}",
"useProps": [Function], "useProps": [Function],
"value": "A", "value": "A",
}, },
@ -268,7 +268,7 @@ describe('CollectionFieldInterfaceManager', () => {
expect(fieldInterface.componentOptions).toMatchInlineSnapshot(` expect(fieldInterface.componentOptions).toMatchInlineSnapshot(`
[ [
{ {
"label": "B", "label": "{{t("B")}}",
"useProps": [Function], "useProps": [Function],
"value": "A.B", "value": "A.B",
}, },
@ -292,7 +292,7 @@ describe('CollectionFieldInterfaceManager', () => {
}; };
componentOptions = [ componentOptions = [
{ {
label: 'A', label: '{{t("A")}}',
value: 'A', value: 'A',
}, },
]; ];
@ -308,7 +308,7 @@ describe('CollectionFieldInterfaceManager', () => {
expect(fieldInterface.componentOptions).toMatchInlineSnapshot(` expect(fieldInterface.componentOptions).toMatchInlineSnapshot(`
[ [
{ {
"label": "A", "label": "{{t("A")}}",
"value": "A", "value": "A",
}, },
{ {