2020-08-24 17:16:35 +09:00
|
|
|
import test from 'ava'
|
2020-07-03 01:31:50 +09:00
|
|
|
|
|
|
|
const bindings = require('../index.node')
|
|
|
|
|
|
|
|
test('should get napi version', (t) => {
|
|
|
|
const napiVersion = bindings.getNapiVersion()
|
|
|
|
t.true(typeof napiVersion === 'number')
|
2020-08-24 17:16:35 +09:00
|
|
|
// @ts-expect-error
|
2020-07-03 01:31:50 +09:00
|
|
|
t.is(`${napiVersion}`, process.versions.napi)
|
|
|
|
})
|