Skip to content

Commit e77cbae

Browse files
committed
test: prevent promise text rendering in validation view
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent ee70818 commit e77cbae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/tests/views/Validation.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,16 @@ describe('Validation.vue - Business Logic', () => {
227227
})
228228
})
229229

230+
describe('async signing rendering', () => {
231+
it('does not render Promise text in async signing mode', async () => {
232+
await wrapper.setData({
233+
isAsyncSigning: true,
234+
})
235+
236+
expect(wrapper.html()).not.toContain('[object Promise]')
237+
})
238+
})
239+
230240
describe('getValidityStatus method', () => {
231241
it('returns unknown when valid_to is missing', () => {
232242
const signer = {}

0 commit comments

Comments
 (0)