(validate: AnyValidateFunction<unknown>)
| 294 | testExport(m.default) |
| 295 | |
| 296 | function testExport(validate: AnyValidateFunction<unknown>) { |
| 297 | assert.strictEqual(validate(1), true) |
| 298 | assert.strictEqual(validate(0), true) |
| 299 | assert.strictEqual(validate(-1), false) |
| 300 | assert.strictEqual(validate("1"), false) |
| 301 | } |
| 302 | }) |
| 303 | |
| 304 | it("should generate module code with a single export - ESM", () => { |
no test coverage detected
searching dependent graphs…