()
| 596 | |
| 597 | it('should throw an error for postfix unary expressions', () => { |
| 598 | function postfixNodeToValue() { |
| 599 | // there's no valid source representation for this one, so we fake it |
| 600 | const unaryExpressionPostfix = (() => { |
| 601 | const node = parse('+1;').body[0].expression; |
| 602 | |
| 603 | node.prefix = false; |
| 604 | |
| 605 | return node; |
| 606 | })(); |
| 607 | |
| 608 | return astNode.nodeToValue(unaryExpressionPostfix); |
| 609 | } |
| 610 | |
| 611 | expect(postfixNodeToValue).toThrow(); |
| 612 | }); |
nothing calls this directly
no test coverage detected
searching dependent graphs…