(classVariant)
| 4 | import { IncludeTest as IncludeTestEsm } from "./gen-nodejs-esm/Include_types.mjs"; |
| 5 | |
| 6 | function constructTest(classVariant) { |
| 7 | return function (t) { |
| 8 | const obj = new classVariant({ bools: { im_true: true, im_false: false } }); |
| 9 | |
| 10 | t.assert(obj.bools.im_true === true); |
| 11 | t.assert(obj.bools.im_false === false); |
| 12 | t.end(); |
| 13 | }; |
| 14 | } |
| 15 | |
| 16 | test("construct es5", constructTest(IncludeTestEs5)); |
| 17 | test("construct es6", constructTest(IncludeTestEs6)); |