mirror of
https://github.com/napi-rs/napi-rs.git
synced 2026-01-25 15:38:06 +00:00
10 lines
249 B
TypeScript
10 lines
249 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)
|
|
})
|