Skip to content

Commit

Permalink
Adding missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Jan 10, 2025
1 parent d5f18ff commit 1bbb5e8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2618,7 +2618,7 @@ class c {}`
.and.have.nested.property('receiver').tracedTo(0, 3)
})

it('should parse compound sending messages', () => {
it('should parse chained sending messages', () => {
'a.m().n().o()'.should.be.parsedBy(parser).into(
new Send({
receiver: new Send({
Expand Down Expand Up @@ -2793,6 +2793,19 @@ class c {}`
.and.also.have.nested.property('args.0.members.0.body.sentences.0.value').tracedTo(9, 10)
})

it('should parse chained send with malformed receiver', () => {
`m1().m2()`.should.be.parsedBy(parser)
.into(new Send({
receiver: new Send({
receiver: new Literal({ value: null }),
message: 'm1',
args: [],
}),
message: 'm2',
args: [],
}))
})

})

describe('New', () => {
Expand Down

0 comments on commit 1bbb5e8

Please sign in to comment.