import { assert } from 'chai'; const name: string = "Alice"; assert.ok(name);
import { assert } from 'chai'; const age: number = 0; assert.ok(age);In this example, we assert that the variable `age` is truthy using the `assert.ok` function. Since `age` is a falsy value (zero), the assertion fails. The Chai assert ok function is part of the Chai Assertion Library package.