mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
11 lines
265 B
TypeScript
11 lines
265 B
TypeScript
import test from 'ava'
|
|
|
|
// @ts-expect-error
|
|
import bindings from '../index.node'
|
|
|
|
test('should get napi version', (t) => {
|
|
const napiVersion = bindings.getNapiVersion()
|
|
t.true(typeof napiVersion === 'number')
|
|
t.is(`${napiVersion}`, process.versions.napi!)
|
|
})
|