test: update watermark test case

pr675
Hufe921 2 years ago
parent 55bbe22578
commit c75482a4f6

@ -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)
}) })
}) })
}) })

Loading…
Cancel
Save