10 lines
254 B
JavaScript
10 lines
254 B
JavaScript
|
const test = require('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)
|
||
|
})
|