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

9 lines
212 B
TypeScript
Raw Normal View History

import test from 'ava'
2020-08-03 15:34:58 +09:00
const bindings = require('../index.node')
test('should be able to concat string', (t) => {
const fixture = 'JavaScript 🌳 你好 napi'
t.snapshot(bindings.concatString(fixture))
})