From 799af4e550e05f7d2474b11539b9ae759987c660 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Fri, 29 Mar 2024 15:05:03 +0530 Subject: [PATCH] fix test --- packages/mermaid/src/diagrams/sequence/sequenceDb.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/mermaid/src/diagrams/sequence/sequenceDb.ts b/packages/mermaid/src/diagrams/sequence/sequenceDb.ts index 1520daf4ab..8635bbb282 100644 --- a/packages/mermaid/src/diagrams/sequence/sequenceDb.ts +++ b/packages/mermaid/src/diagrams/sequence/sequenceDb.ts @@ -184,7 +184,7 @@ export const addMessage = function ( export const addSignal = function ( idFrom?: Message['from'], idTo?: Message['to'], - message?: { text: string; wrap?: boolean }, + message: { text?: string; wrap?: boolean } = { text: undefined, wrap: undefined }, messageType?: number, activate: boolean = false ) { @@ -385,10 +385,9 @@ export const addNote = function ( wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap, }; - // Coerce actor into a [to, from, ...] array + //@ts-ignore: Coerce actor into a [to, from, ...] array // eslint-disable-next-line unicorn/prefer-spread - const actors = [actor, actor]; - + const actors = [].concat(actor, actor); state.records.notes.push(note); state.records.messages.push({ from: actors[0],