UNPKG

@typed/test

Version:
16 lines 532 B
import { describe } from './describe'; import { updateModifier } from './updateModifier'; export function given(that, tests) { return describe(`given ${that}`, tests); } (function (given) { function only(what, tests) { return updateModifier('only', given(what, tests)); } given.only = only; function skip(what, tests) { return updateModifier('skip', given(what, tests.map(x => updateModifier('skip', x)))); } given.skip = skip; })(given || (given = {})); //# sourceMappingURL=given.js.map