Fix for hideUnusedParticipants

This commit is contained in:
Knut Sveidqvist
2022-04-28 18:45:18 +02:00
parent 90a631cdad
commit d914e23626
5 changed files with 25 additions and 68 deletions

View File

@@ -614,16 +614,14 @@ context('Sequence diagram', () => {
//Be aware that the syntax for "properties" is likely to be changed.
imgSnapshotTest(
`
%%{init: { "config": { "hideUnusedParticipants": true }}}%%
%%{init: { "config": { "sequence": {"hideUnusedParticipants": true }}}}%%
sequenceDiagram
participant a
`,
{
logLevel: 0,
sequence: { mirrorActors: false, noteFontSize: 18, noteFontFamily: 'Arial' },
},
false,
(svg) => expect(svg.get('rect')).to.be.empty()
}
);
});
});