mirror of
https://github.com/nocobase/nocobase
synced 2024-11-14 22:05:38 +00:00
* fix: unit tests error, caused by #5442 * fix: unit test errors casued by #5442
This commit is contained in:
parent
50056439d9
commit
d158585efd
@ -467,7 +467,7 @@ describe('Application', () => {
|
||||
.toMatchInlineSnapshot(`
|
||||
[
|
||||
{
|
||||
"label": "TestComponent",
|
||||
"label": "{{t("TestComponent")}}",
|
||||
"useProps": [Function],
|
||||
"value": "TestComponent",
|
||||
},
|
||||
|
@ -156,7 +156,7 @@ describe('CollectionFieldInterfaceManager', () => {
|
||||
expect(fieldInterface.componentOptions).toMatchInlineSnapshot(`
|
||||
[
|
||||
{
|
||||
"label": "A",
|
||||
"label": "{{t("A")}}",
|
||||
"useProps": [Function],
|
||||
"value": "A",
|
||||
},
|
||||
@ -190,7 +190,7 @@ describe('CollectionFieldInterfaceManager', () => {
|
||||
expect(fieldInterface.componentOptions).toMatchInlineSnapshot(`
|
||||
[
|
||||
{
|
||||
"label": "A",
|
||||
"label": "{{t("A")}}",
|
||||
"useProps": [Function],
|
||||
"value": "A",
|
||||
},
|
||||
@ -268,7 +268,7 @@ describe('CollectionFieldInterfaceManager', () => {
|
||||
expect(fieldInterface.componentOptions).toMatchInlineSnapshot(`
|
||||
[
|
||||
{
|
||||
"label": "B",
|
||||
"label": "{{t("B")}}",
|
||||
"useProps": [Function],
|
||||
"value": "A.B",
|
||||
},
|
||||
@ -292,7 +292,7 @@ describe('CollectionFieldInterfaceManager', () => {
|
||||
};
|
||||
componentOptions = [
|
||||
{
|
||||
label: 'A',
|
||||
label: '{{t("A")}}',
|
||||
value: 'A',
|
||||
},
|
||||
];
|
||||
@ -308,7 +308,7 @@ describe('CollectionFieldInterfaceManager', () => {
|
||||
expect(fieldInterface.componentOptions).toMatchInlineSnapshot(`
|
||||
[
|
||||
{
|
||||
"label": "A",
|
||||
"label": "{{t("A")}}",
|
||||
"value": "A",
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user