Skip to content

Commit f6d3f1c

Browse files
committed
updated test case
1 parent 806a468 commit f6d3f1c

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

__test__/field.test.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,6 @@ describe("Field", () => {
9494
});
9595
});
9696

97-
it("setData resolves with warnings when bridge returns warnings", async () => {
98-
const warn = [
99-
{
100-
field: "title",
101-
fieldType: "text",
102-
reasons: [{ reason: "MIN_LENGTH", message: "too short" }],
103-
},
104-
];
105-
jest.spyOn(connection, "sendToParent").mockResolvedValue({
106-
data: { warnings: warn },
107-
});
108-
const out: any = await field.setData("ab");
109-
expect(out.warnings).toEqual(warn);
110-
});
11197
});
11298

11399
describe("File", () => {

0 commit comments

Comments
 (0)