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

9 lines
217 B
JavaScript
Raw Normal View History

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