Skip to content

feat: [activity] support quoted word as action message #557

feat: [activity] support quoted word as action message

feat: [activity] support quoted word as action message #557

GitHub Actions / JEST Tests succeeded Aug 3, 2024 in 0s

144 passed, 0 failed and 0 skipped

Tests passed successfully

✅ reports/junit.xml

144 tests were completed in 10s with 144 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
activity parser 20✅ 2s
activity-artist 4✅ 758ms
activityDiagram config 2✅ 78ms
class parser 10✅ 450ms
component-artist 1✅ 402ms
componentDiagram config 2✅ 126ms
componentDiagram parser 10✅ 2s
dot config 2✅ 89ms
dot parser 7✅ 333ms
dot-artist 3✅ 682ms
er config 3✅ 106ms
er config 2✅ 67ms
er event recognizer 2✅ 1s
er parser 6✅ 321ms
er-artist 3✅ 273ms
gantt config 2✅ 218ms
gantt parser 6✅ 892ms
gantt-artist 1✅ 493ms
mindmap config 2✅ 98ms
mindmap parser 8✅ 327ms
mindmap-artist 1✅ 152ms
parser edge case 1✅ 1s
pintora core configApi 3✅ 364ms
pintora core themeRegistry 1✅ 136ms
pintora standalone 8✅ 5s
render 4✅ 4s
render cases 1✅ 784ms
sequence event recognizer 2✅ 977ms
sequence parser 20✅ 2s
sequence-artist 5✅ 335ms
StyleContext 2✅ 67ms

✅ activity parser

activity parser can parse action
  ✅ activity parser can parse action
activity parser can parse conditions
  ✅ activity parser can parse conditions
activity parser can parse while loops
  ✅ activity parser can parse while loops
activity parser can parse keywords
  ✅ activity parser can parse keywords
activity parser can parse keyword in condition
  ✅ activity parser can parse keyword in condition
activity parser can parse group
  ✅ activity parser can parse group
activity parser can parse group title with multiple words
  ✅ activity parser can parse group title with multiple words
activity parser can parse notes
  ✅ activity parser can parse notes
activity parser can parse while-loops inside group
  ✅ activity parser can parse while-loops inside group
activity parser can parse conditions inside group
  ✅ activity parser can parse conditions inside group
activity parser can parse nested groups
  ✅ activity parser can parse nested groups
activity parser can parse switch case sentence
  ✅ activity parser can parse switch case sentence
activity parser can parse arrow statement
  ✅ activity parser can parse arrow statement
activity parser can parse fork sentence
  ✅ activity parser can parse fork sentence
activity parser can parse fork with end merge
  ✅ activity parser can parse fork with end merge
activity parser can parse detach and kill
  ✅ activity parser can parse detach and kill
activity parser can parse repeat loop
  ✅ activity parser can parse repeat loop
activity parser can parse repeat loop that has first action
  ✅ activity parser can parse repeat loop that has first action
activity parser can parse title
  ✅ activity parser can parse title
activity parser can parse quoted word in action
  ✅ activity parser can parse quoted word in action

✅ activity-artist

activity-artist can draw
  ✅ activity-artist can draw
activity-artist draw fork
  ✅ activity-artist draw fork
activity-artist draw repeat
  ✅ activity-artist draw repeat
activity-artist Should draw a no-action-line when there is no else block
  ✅ activity-artist Should draw a no-action-line when there is no else block

✅ activityDiagram config

activityDiagram config can parse  param clause
  ✅ activityDiagram config can parse  param clause
activityDiagram config can parse override clause
  ✅ activityDiagram config can parse override clause

✅ class parser

class parser can parse class name
  ✅ class parser can parse class name
class parser can parse methods and fields
  ✅ class parser can parse methods and fields
class parser can parse member with modifier
  ✅ class parser can parse member with modifier
class parser can parse relationship between classes
  ✅ class parser can parse relationship between classes
class parser can parse multiple relationships
  ✅ class parser can parse multiple relationships
class parser can parse quoted labels on relations
  ✅ class parser can parse quoted labels on relations
class parser can parse class annotation
  ✅ class parser can parse class annotation
class parser can parse class label
  ✅ class parser can parse class label
class parser can parse singleline note
  ✅ class parser can parse singleline note
class parser can parse multiline note
  ✅ class parser can parse multiline note

✅ component-artist

component-artist match example snapshot
  ✅ component-artist match example snapshot

✅ componentDiagram config

componentDiagram config can parse  param clause
  ✅ componentDiagram config can parse  param clause
componentDiagram config can parse override clause
  ✅ componentDiagram config can parse override clause

✅ componentDiagram parser

componentDiagram parser parse component
  ✅ componentDiagram parser parse component
componentDiagram parser parse group
  ✅ componentDiagram parser parse group
componentDiagram parser parse interface
  ✅ componentDiagram parser parse interface
componentDiagram parser parse relationship
  ✅ componentDiagram parser parse relationship
componentDiagram parser parse nested component
  ✅ componentDiagram parser parse nested component
componentDiagram parser can parse param clause
  ✅ componentDiagram parser can parse param clause
componentDiagram parser can parse element to group relationship
  ✅ componentDiagram parser can parse element to group relationship
componentDiagram parser can parse comments
  ✅ componentDiagram parser can parse comments
componentDiagram parser can parse title
  ✅ componentDiagram parser can parse title
componentDiagram parser can parse escape chars
  ✅ componentDiagram parser can parse escape chars

✅ dot config

dot config can parse param clause
  ✅ dot config can parse param clause
dot config can parse override clause
  ✅ dot config can parse override clause

✅ dot parser

dot parser should parse node
  ✅ dot parser should parse node
dot parser should parse node in shorthand
  ✅ dot parser should parse node in shorthand
dot parser should parse edge
  ✅ dot parser should parse edge
dot parser should parse directed edge
  ✅ dot parser should parse directed edge
dot parser should parse attr stmt
  ✅ dot parser should parse attr stmt
dot parser should parse subgraph
  ✅ dot parser should parse subgraph
dot parser should parse dot comment
  ✅ dot parser should parse dot comment

✅ dot-artist

dot-artist match example snapshot
  ✅ dot-artist match example snapshot
dot-artist renders different arrow type
  ✅ dot-artist renders different arrow type
dot-artist renders different node type
  ✅ dot-artist renders different node type

✅ er config

er config can parse param clause
  ✅ er config can parse param clause
er config can parse param clause inside brackets
  ✅ er config can parse param clause inside brackets
er config can parse override clause
  ✅ er config can parse override clause

✅ er config

er config can parse param clause
  ✅ er config can parse param clause
er config can parse override clause
  ✅ er config can parse override clause

✅ er event recognizer

er event recognizer can recognize entity
  ✅ er event recognizer can recognize entity
er event recognizer can recognize relationship
  ✅ er event recognizer can recognize relationship

✅ er parser

er parser will parse message inside quotes
  ✅ er parser will parse message inside quotes
er parser will parse attribute key
  ✅ er parser will parse attribute key
er parser will parse attribute comment
  ✅ er parser will parse attribute comment
er parser will parse specialisation
  ✅ er parser will parse specialisation
er parser can parse comments
  ✅ er parser can parse comments
er parser can parse title
  ✅ er parser can parse title

✅ er-artist

er-artist will not throw error
  ✅ er-artist will not throw error
er-artist will process containerSize and @useMaxWidth
  ✅ er-artist will process containerSize and @useMaxWidth
er-artist will draw inheritance
  ✅ er-artist will draw inheritance

✅ gantt config

gantt config can parse param clause
  ✅ gantt config can parse param clause
gantt config can parse override clause
  ✅ gantt config can parse override clause

✅ gantt parser

gantt parser should parse attrs
  ✅ gantt parser should parse attrs
gantt parser should parse tasks
  ✅ gantt parser should parse tasks
gantt parser should parse tags
  ✅ gantt parser should parse tags
gantt parser should parse task relation with "after"
  ✅ gantt parser should parse task relation with "after"
gantt parser should parse markDate
  ✅ gantt parser should parse markDate
gantt parser should parse and handle excludes
  ✅ gantt parser should parse and handle excludes

✅ gantt-artist

gantt-artist match example snapshot
  ✅ gantt-artist match example snapshot

✅ mindmap config

mindmap config can parse  param clause
  ✅ mindmap config can parse  param clause
mindmap config can parse override clause
  ✅ mindmap config can parse override clause

✅ mindmap parser

mindmap parser can parse different levels
  ✅ mindmap parser can parse different levels
mindmap parser can parse multiline item
  ✅ mindmap parser can parse multiline item
mindmap parser can parse hyphen inside multiline
  ✅ mindmap parser can parse hyphen inside multiline
mindmap parser can parse arithmetic notations
  ✅ mindmap parser can parse arithmetic notations
mindmap parser will add to root if there are no parent in prev depth
  ✅ mindmap parser will add to root if there are no parent in prev depth
mindmap parser can parse multiroot mindmap
  ✅ mindmap parser can parse multiroot mindmap
mindmap parser can parse CRLF as eol
  ✅ mindmap parser can parse CRLF as eol
mindmap parser can parse title
  ✅ mindmap parser can parse title

✅ mindmap-artist

mindmap-artist should generate graphicIR
  ✅ mindmap-artist should generate graphicIR

✅ parser edge case

parser edge case can parse code with crlf as eol
  ✅ parser edge case can parse code with crlf as eol

✅ pintora core configApi

pintora core configApi replace array instead of merging
  ✅ pintora core configApi replace array instead of merging
pintora core configApi gnernateNewConfig(c) will get themeVariables from themeRegistry if themeConfig.theme is provided
  ✅ pintora core configApi gnernateNewConfig(c) will get themeVariables from themeRegistry if themeConfig.theme is provided
pintora core configApi gnernateNewConfig(c) will assign extra themeConfig.themeVariables
  ✅ pintora core configApi gnernateNewConfig(c) will assign extra themeConfig.themeVariables

✅ pintora core themeRegistry

pintora core themeRegistry registerTheme
  ✅ pintora core themeRegistry registerTheme

✅ pintora standalone

pintora standalone getConfigFromElement get some configs
  ✅ pintora standalone getConfigFromElement get some configs
pintora standalone renderTo set config for only one render
  ✅ pintora standalone renderTo set config for only one render
pintora standalone renderTo should accept container as css selector
  ✅ pintora standalone renderTo should accept container as css selector
pintora standalone renderTo calls `renderer.on` and diagramEventManager methods if `eventsHandlers` is passed
  ✅ pintora standalone renderTo calls `renderer.on` and diagramEventManager methods if `eventsHandlers` is passed
pintora standalone renderTo eventsHandlers will only be triggered by coresponding render
  ✅ pintora standalone renderTo eventsHandlers will only be triggered by coresponding render
pintora standalone renderContentOf should create render result and insert before container
  ✅ pintora standalone renderContentOf should create render result and insert before container
pintora standalone renderContentOf should not create multiple result elements even after multiple calls
  ✅ pintora standalone renderContentOf should not create multiple result elements even after multiple calls
pintora standalone renderContentOf can use options.getContent
  ✅ pintora standalone renderContentOf can use options.getContent

✅ render

render can output svg
  ✅ render can output svg
render can output jpeg
  ✅ render can output jpeg
render pintoraConfig should not alter global config
  ✅ render pintoraConfig should not alter global config
render should cleanup global pollution after render
  ✅ render should cleanup global pollution after render

✅ render cases

render cases will not throw CanvasPattern ReferenceError
  ✅ render cases will not throw CanvasPattern ReferenceError

✅ sequence event recognizer

sequence event recognizer can recognize actor
  ✅ sequence event recognizer can recognize actor
sequence event recognizer can recognize message
  ✅ sequence event recognizer can recognize message

✅ sequence parser

sequence parser can parse unicode chars
  ✅ sequence parser can parse unicode chars
sequence parser can parse singleline note
  ✅ sequence parser can parse singleline note
sequence parser can parse multiline note
  ✅ sequence parser can parse multiline note
sequence parser can parse multiline note with over
  ✅ sequence parser can parse multiline note with over
sequence parser can parse divider
  ✅ sequence parser can parse divider
sequence parser should be correct when there is no char after divider
  ✅ sequence parser should be correct when there is no char after divider
sequence parser can parse participant
  ✅ sequence parser can parse participant
sequence parser can parse participant with classifier
  ✅ sequence parser can parse participant with classifier
sequence parser can parse participant inside box
  ✅ sequence parser can parse participant inside box
sequence parser can parse participant box without title
  ✅ sequence parser can parse participant box without title
sequence parser can parse multiline message
  ✅ sequence parser can parse multiline message
sequence parser keywords can appear in messages
  ✅ sequence parser keywords can appear in messages
sequence parser group
  ✅ sequence parser group
sequence parser group color
  ✅ sequence parser group color
sequence parser can parse activations
  ✅ sequence parser can parse activations
sequence parser can parse activations with plus/minus token
  ✅ sequence parser can parse activations with plus/minus token
sequence parser can parse alt/else
  ✅ sequence parser can parse alt/else
sequence parser can parse par/and
  ✅ sequence parser can parse par/and
sequence parser should be correct when there is blank line inside par
  ✅ sequence parser should be correct when there is blank line inside par
sequence parser can parse comments
  ✅ sequence parser can parse comments

✅ sequence-artist

sequence-artist match example snapshot
  ✅ sequence-artist match example snapshot
sequence-artist draw cross mark to
  ✅ sequence-artist draw cross mark to
sequence-artist will process containerSize and @useMaxWidth
  ✅ sequence-artist will process containerSize and @useMaxWidth
sequence-artist will render boxes
  ✅ sequence-artist will render boxes
sequence-artist draw participant classifier
  ✅ sequence-artist draw participant classifier

✅ StyleContext

StyleContext getValue through parent chain
  ✅ StyleContext getValue through parent chain
StyleContext resolve through parent chain
  ✅ StyleContext resolve through parent chain