a781a4f27e
BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
9 lines
250 B
TypeScript
9 lines
250 B
TypeScript
import test from 'ava'
|
|
|
|
const bindings = require('../index.node')
|
|
|
|
test('should get napi version', (t) => {
|
|
const napiVersion = bindings.getNapiVersion()
|
|
t.true(typeof napiVersion === 'number')
|
|
t.is(`${napiVersion}`, process.versions.napi!)
|
|
})
|