napi-rs/test_module/__test__/env.spec.ts

8 lines
182 B
TypeScript
Raw Normal View History

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')
})