Skip to content

Commit f28ec35

Browse files
committed
test(validation): fix isEnvelope test to reflect nodeType-only detection
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 7cceff9 commit f28ec35

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/tests/views/Validation.spec.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -288,17 +288,10 @@ describe('Validation.vue - Business Logic', () => {
288288
expect(wrapper.vm.isEnvelope).toBe(true)
289289
})
290290

291-
it('returns true when document has files array', () => {
291+
it('returns false when document has files array but nodeType is not envelope', () => {
292292
wrapper.vm.document = {
293293
document: { files: [{ id: 1 }] },
294294
}.document
295-
expect(wrapper.vm.isEnvelope).toBe(true)
296-
})
297-
298-
it('returns false when files array is empty', () => {
299-
wrapper.vm.document = {
300-
document: { files: [] },
301-
}.document
302295
expect(wrapper.vm.isEnvelope).toBe(false)
303296
})
304297

0 commit comments

Comments
 (0)