(source, expected)
| 24 | } |
| 25 | |
| 26 | function testTryCatch(source, expected) { |
| 27 | const mutator = new tryCatch.AddTryCatchMutator(); |
| 28 | mutator.mutate(source); |
| 29 | |
| 30 | const mutated = sourceHelpers.generateCode(source); |
| 31 | helpers.assertExpectedResult(expected, mutated); |
| 32 | } |
| 33 | |
| 34 | describe('Try catch', () => { |
| 35 | afterEach(() => { |