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')
|
2022-01-06 23:33:34 +09:00
|
|
|
t.is(`${napiVersion}`, process.versions.napi!)
|
2020-07-03 01:31:50 +09:00
|
|
|
})
|