mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 19:08:04 +01:00
Enable tsconfig noUncheckedIndexedAccess
This commit is contained in:
@@ -860,7 +860,7 @@ describe('BodyRanges', () => {
|
||||
replacementText: 'Eve',
|
||||
conversationID: 'x',
|
||||
},
|
||||
];
|
||||
] as const;
|
||||
const { cleanedSnippet, bodyRanges: processedBodyRanges } =
|
||||
processBodyRangesForSearchResult({
|
||||
snippet:
|
||||
|
||||
@@ -271,7 +271,7 @@ describe('Contact', () => {
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
} as const;
|
||||
const result = await upgradeVersion(
|
||||
message.contact[0],
|
||||
defaultContext,
|
||||
@@ -301,7 +301,7 @@ describe('Contact', () => {
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
} as const;
|
||||
const expected = {
|
||||
name: {
|
||||
nickname: 'Someone Somewhere',
|
||||
@@ -348,7 +348,7 @@ describe('Contact', () => {
|
||||
} as unknown as Avatar,
|
||||
},
|
||||
],
|
||||
};
|
||||
} as const;
|
||||
const expected = {
|
||||
name: {
|
||||
nickname: 'Someone Somewhere',
|
||||
@@ -411,7 +411,7 @@ describe('Contact', () => {
|
||||
} as unknown as Avatar,
|
||||
},
|
||||
],
|
||||
};
|
||||
} as const;
|
||||
const expected = {
|
||||
name: {
|
||||
nickname: 'Someone Somewhere',
|
||||
@@ -474,11 +474,11 @@ describe('Contact', () => {
|
||||
{
|
||||
type: 0,
|
||||
value: 'someone@somewhere.com',
|
||||
},
|
||||
} as unknown as Email,
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
} as const;
|
||||
const expected = {
|
||||
name: {
|
||||
nickname: 'Someone Somewhere',
|
||||
@@ -524,7 +524,7 @@ describe('Contact', () => {
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
} as const;
|
||||
const expected = {
|
||||
name: {
|
||||
nickname: 'Someone Somewhere',
|
||||
@@ -572,7 +572,7 @@ describe('Contact', () => {
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
} as const;
|
||||
const expected = {
|
||||
name: {
|
||||
nickname: 'Someone Somewhere',
|
||||
@@ -605,7 +605,7 @@ describe('Contact', () => {
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
} as const;
|
||||
const result = await upgradeVersion(
|
||||
message.contact[0],
|
||||
defaultContext,
|
||||
|
||||
@@ -1036,9 +1036,9 @@ describe('NotificationProfile', () => {
|
||||
const starting = [middle, old, newest];
|
||||
const actual = sortProfiles(starting);
|
||||
|
||||
assert.strictEqual(actual[0].name, 'newest');
|
||||
assert.strictEqual(actual[1].name, 'middle');
|
||||
assert.strictEqual(actual[2].name, 'old');
|
||||
assert.strictEqual(actual[0]?.name, 'newest');
|
||||
assert.strictEqual(actual[1]?.name, 'middle');
|
||||
assert.strictEqual(actual[2]?.name, 'old');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user