mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Change sessions.id to a TEXT field to prevent type coercion
This commit is contained in:
@@ -940,7 +940,7 @@ describe('SignalProtocolStore', () => {
|
||||
describe('getDeviceIds', () => {
|
||||
it('returns deviceIds for a number', async () => {
|
||||
const testRecord = 'an opaque string';
|
||||
const devices = [1, 2, 3].map(deviceId => {
|
||||
const devices = [1, 2, 3, 10].map(deviceId => {
|
||||
return [number, deviceId].join('.');
|
||||
});
|
||||
|
||||
@@ -951,7 +951,7 @@ describe('SignalProtocolStore', () => {
|
||||
);
|
||||
|
||||
const deviceIds = await store.getDeviceIds(number);
|
||||
assert.sameMembers(deviceIds, [1, 2, 3]);
|
||||
assert.sameMembers(deviceIds, [1, 2, 3, 10]);
|
||||
});
|
||||
it('returns empty array for a number with no device ids', async () => {
|
||||
const deviceIds = await store.getDeviceIds('foo');
|
||||
|
||||
Reference in New Issue
Block a user