MCPcopy Create free account
hub / github.com/apache/thrift / constructTest

Function constructTest

lib/nodejs/test/include.test.mjs:6–14  ·  view source on GitHub ↗
(classVariant)

Source from the content-addressed store, hash-verified

4import { IncludeTest as IncludeTestEsm } from "./gen-nodejs-esm/Include_types.mjs";
5
6function 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
16test("construct es5", constructTest(IncludeTestEs5));
17test("construct es6", constructTest(IncludeTestEs6));

Callers 1

include.test.mjsFile · 0.85

Calls 1

endMethod · 0.45

Tested by

no test coverage detected