mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 10:19:08 +00:00
Rename files
This commit is contained in:
38
ts/test-node/processSyncMessage_test.node.ts
Normal file
38
ts/test-node/processSyncMessage_test.node.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { assert } from 'chai';
|
||||
import { generateAci } from '../types/ServiceId.std.js';
|
||||
|
||||
import { processSyncMessage } from '../textsecure/processSyncMessage.node.js';
|
||||
|
||||
describe('processSyncMessage', () => {
|
||||
const destinationServiceId = generateAci();
|
||||
|
||||
it('should normalize UUIDs in sent', () => {
|
||||
const out = processSyncMessage({
|
||||
sent: {
|
||||
destinationServiceId: destinationServiceId.toUpperCase(),
|
||||
|
||||
unidentifiedStatus: [
|
||||
{
|
||||
destinationServiceId: destinationServiceId.toUpperCase(),
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
||||
assert.deepStrictEqual(out, {
|
||||
sent: {
|
||||
destinationServiceId,
|
||||
|
||||
storyMessageRecipients: undefined,
|
||||
unidentifiedStatus: [
|
||||
{
|
||||
destinationServiceId,
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user