(binding)
| 5 | module.exports = require('./common').runTest(test); |
| 6 | |
| 7 | function test (binding) { |
| 8 | const { |
| 9 | CreateDate, |
| 10 | IsDate, |
| 11 | ValueOf, |
| 12 | OperatorValue, |
| 13 | CreateDateFromTimePoint |
| 14 | } = binding.date; |
| 15 | assert.deepStrictEqual(CreateDate(0), new Date(0)); |
| 16 | assert.deepStrictEqual(CreateDateFromTimePoint(), new Date(0)); |
| 17 | assert.strictEqual(IsDate(new Date(0)), true); |
| 18 | assert.strictEqual(ValueOf(new Date(42)), 42); |
| 19 | assert.strictEqual(OperatorValue(new Date(42)), true); |
| 20 | } |
nothing calls this directly
no test coverage detected