| const { | |
| parse, | |
| stringify, | |
| transforms, | |
| tokenizers, | |
| } = require('../../lib/index.cjs'); | |
| const { examples } = require('./examples'); | |
| const table = examples.map((fn) => [fn.name.replace(/_/g, ' '), fn]); | |
| test.each(table)('example - %s', (name, fn) => { | |
| const source = fn.toString(); | |
| expect(() => | |
| fn(source, parse, stringify, transforms, tokenizers) | |
| ).not.toThrow(); | |
| }); |