{"_quickTake.js":{"title":"Quick Take","content":"import &#x7B; strict as assert &#x7D; from \"assert\";\nimport &#x7B; mixer &#x7D; from \"test-mixer\";\n\n// check all possible combinations of all boolean opts:\nconst defaultOpts = &#x7B;\n  scrapeWindshield: true,\n  checkOil: true,\n  inflateTires: false,\n  extinguishersCount: 1, // as non-boolean will be ignored\n&#x7D;;\n\n// generates 2^3 = 8 combinations all possible bools\nassert.deepEqual(\n  mixer(\n    &#x7B;\n      // empty first arg object means you want all combinations\n    &#x7D;,\n    defaultOpts\n  ),\n  [\n    &#x7B;\n      scrapeWindshield: false,\n      checkOil: false,\n      inflateTires: false,\n      extinguishersCount: 1,\n    &#x7D;,\n    &#x7B;\n      scrapeWindshield: true,\n      checkOil: false,\n      inflateTires: false,\n      extinguishersCount: 1,\n    &#x7D;,\n    &#x7B;\n      scrapeWindshield: false,\n      checkOil: true,\n      inflateTires: false,\n      extinguishersCount: 1,\n    &#x7D;,\n    &#x7B;\n      scrapeWindshield: true,\n      checkOil: true,\n      inflateTires: false,\n      extinguishersCount: 1,\n    &#x7D;,\n    &#x7B;\n      scrapeWindshield: false,\n      checkOil: false,\n      inflateTires: true,\n      extinguishersCount: 1,\n    &#x7D;,\n    &#x7B;\n      scrapeWindshield: true,\n      checkOil: false,\n      inflateTires: true,\n      extinguishersCount: 1,\n    &#x7D;,\n    &#x7B;\n      scrapeWindshield: false,\n      checkOil: true,\n      inflateTires: true,\n      extinguishersCount: 1,\n    &#x7D;,\n    &#x7B;\n      scrapeWindshield: true,\n      checkOil: true,\n      inflateTires: true,\n      extinguishersCount: 1,\n    &#x7D;,\n  ]\n);\n\n// let's \"pin\" a value, prepare two sets of options objects,\n// one where scrapeWindshield === true and another with \"false\"\n\n// you'll get 2 ^ (3-1) = 4 variations:\nconst variationsWithScrapeWindshieldOn = mixer(\n  &#x7B;\n    scrapeWindshield: true,\n  &#x7D;,\n  defaultOpts\n);\nassert.deepEqual(variationsWithScrapeWindshieldOn, [\n  &#x7B;\n    scrapeWindshield: true, // <--- pinned\n    checkOil: false,\n    inflateTires: false,\n    extinguishersCount: 1,\n  &#x7D;,\n  &#x7B;\n    scrapeWindshield: true, // <--- pinned\n    checkOil: true,\n    inflateTires: false,\n    extinguishersCount: 1,\n  &#x7D;,\n  &#x7B;\n    scrapeWindshield: true, // <--- pinned\n    checkOil: false,\n    inflateTires: true,\n    extinguishersCount: 1,\n  &#x7D;,\n  &#x7B;\n    scrapeWindshield: true, // <--- pinned\n    checkOil: true,\n    inflateTires: true,\n    extinguishersCount: 1,\n  &#x7D;,\n]);\n\n// also 4 variations, similar but with scrapeWindshield === false pinned:\nconst variationsWithScrapeWindshieldOff = mixer(\n  &#x7B;\n    scrapeWindshield: false,\n  &#x7D;,\n  defaultOpts\n);\nassert.equal(variationsWithScrapeWindshieldOff.length, 4);"}}