Skip to content

Commit 1981d55

Browse files
fix: return the kind of modal
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent c9f667b commit 1981d55

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tests/views/SignPDF/Sign.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,12 +865,14 @@ describe('Sign.vue - signWithTokenCode', () => {
865865
// VERIFY: Must send identify method, NOT signature method name
866866
expect(submitSignatureMock).toHaveBeenCalledWith({
867867
method: testCase.expectedIdentifyMethod, // 'whatsapp', 'sms', 'signal'
868+
modalCode: 'token',
868869
token: testCase.token,
869870
})
870871

871872
// Double-check: Should NOT send the signature method key name
872873
expect(submitSignatureMock).not.toHaveBeenCalledWith({
873874
method: testCase.signatureMethodKey, // NOT 'whatsappToken', 'smsToken', etc
875+
modalCode: 'token',
874876
token: testCase.token,
875877
})
876878
}

0 commit comments

Comments
 (0)