Lines Matching refs:asBool
12 assert.strictEqual(test.asBool(false), false);
13 assert.strictEqual(test.asBool(true), true);
14 assert.throws(() => test.asBool(undefined), boolExpected);
15 assert.throws(() => test.asBool(null), boolExpected);
16 assert.throws(() => test.asBool(Number.NaN), boolExpected);
17 assert.throws(() => test.asBool(0), boolExpected);
18 assert.throws(() => test.asBool(''), boolExpected);
19 assert.throws(() => test.asBool('0'), boolExpected);
20 assert.throws(() => test.asBool(1), boolExpected);
21 assert.throws(() => test.asBool('1'), boolExpected);
22 assert.throws(() => test.asBool('true'), boolExpected);
23 assert.throws(() => test.asBool({}), boolExpected);
24 assert.throws(() => test.asBool([]), boolExpected);
25 assert.throws(() => test.asBool(testSym), boolExpected);