mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 08:13:37 +01:00
Use protopiler for protocol buffers
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
@@ -20,11 +20,11 @@ describe('callingMessageToProto', () => {
|
||||
describe('hangup field', () => {
|
||||
it('leaves the field unset if `hangup` is not provided', () => {
|
||||
const result = callingMessageToProto(new CallingMessage());
|
||||
assert.isUndefined(result.hangup);
|
||||
assert.isNull(result.hangup);
|
||||
});
|
||||
|
||||
it('attaches the type if provided', () => {
|
||||
const callId: CallId = { high: 0, low: 0, unsigned: false };
|
||||
const callId: CallId = 0n;
|
||||
|
||||
const callingMessage = new CallingMessage();
|
||||
callingMessage.hangup = new HangupMessage(callId, HangupType.Busy, 1);
|
||||
@@ -38,7 +38,7 @@ describe('callingMessageToProto', () => {
|
||||
describe('opaque field', () => {
|
||||
it('leaves the field unset if neither `opaque` nor urgency are provided', () => {
|
||||
const result = callingMessageToProto(new CallingMessage());
|
||||
assert.isUndefined(result.opaque);
|
||||
assert.isNull(result.opaque);
|
||||
});
|
||||
|
||||
it('attaches opaque data', () => {
|
||||
|
||||
Reference in New Issue
Block a user