napi-rs/test_module/__test__/env.spec.ts
2021-06-09 21:58:05 +08:00

7 lines
182 B
TypeScript

import test from 'ava'
const bindings = require('../index.node')
test('should be able to access env variable from native', (t) => {
t.is(bindings.getEnvVariable(), 'napi-rs')
})