mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-06 05:59:25 +08: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(`
|
.toMatchInlineSnapshot(`
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"label": "TestComponent",
|
"label": "{{t("TestComponent")}}",
|
||||||
"useProps": [Function],
|
"useProps": [Function],
|
||||||
"value": "TestComponent",
|
"value": "TestComponent",
|
||||||
},
|
},
|
||||||
|
@ -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",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user