mirror of
https://github.com/signalapp/libsignal.git
synced 2026-04-26 01:35:22 +02:00
Add libsignal-bridge-testing for Node
Unlike Java, just bundle it into the exiting signal_node shared library. We don't care as much about code size here and splitting it into a separate library is significantly more complicated (though it might be worth it some day).
This commit is contained in:
17
node/ts/test/NativeTest.ts
Normal file
17
node/ts/test/NativeTest.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Copyright 2023 Signal Messenger, LLC.
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
//
|
||||
|
||||
import { assert, use } from 'chai';
|
||||
import * as chaiAsPromised from 'chai-as-promised';
|
||||
import * as Native from '../../Native';
|
||||
|
||||
use(chaiAsPromised);
|
||||
|
||||
describe('Native', () => {
|
||||
it('has test-only functions', () => {
|
||||
const value = Native.test_only_fn_returns_123();
|
||||
assert.equal(value, 123);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user