mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
fix test
This commit is contained in:
parent
b8e0bcee5b
commit
799af4e550
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user