Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
17 lines
386 B
Plaintext
17 lines
386 B
Plaintext
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();
|
|
});
|