test: update watermark test case

This commit is contained in:
Hufe921
2024-06-06 21:32:22 +08:00
parent 55bbe22578
commit c75482a4f6
+8 -4
View File
@@ -30,7 +30,9 @@ describe('菜单-水印', () => {
.then(() => { .then(() => {
const payload = editor.command.getValue() const payload = editor.command.getValue()
const { watermark } = payload const {
options: { watermark }
} = payload
expect(watermark?.data).to.eq(text) expect(watermark?.data).to.eq(text)
@@ -49,11 +51,13 @@ describe('菜单-水印', () => {
.then(() => { .then(() => {
const payload = editor.command.getValue() const payload = editor.command.getValue()
const { watermark } = payload const {
options: { watermark }
} = payload
expect(watermark?.data).to.eq(undefined) expect(watermark?.data).to.eq('')
expect(watermark?.size).to.eq(undefined) expect(watermark?.size).to.eq(200)
}) })
}) })
}) })