Update ts/test-both/state/selectors/search_test.ts
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
This commit is contained in:
parent
38074374f4
commit
58d22048b9
1 changed files with 2 additions and 16 deletions
|
@ -186,22 +186,8 @@ describe('both/state/selectors/search', () => {
|
|||
const selector = getMessageSearchResultSelector(state);
|
||||
|
||||
const actual = selector(searchId);
|
||||
const expected = {
|
||||
from,
|
||||
to: meAsRecipient,
|
||||
|
||||
id: searchId,
|
||||
conversationId: toId,
|
||||
sentAt: undefined,
|
||||
snippet: 'snippet',
|
||||
body: 'snippet',
|
||||
bodyRanges: [],
|
||||
|
||||
isSelected: false,
|
||||
isSearchingInConversation: false,
|
||||
};
|
||||
|
||||
assert.deepEqual(actual, expected);
|
||||
assert.deepEqual(actual.from, from);
|
||||
assert.deepEqual(action.to, meAsRecipient);
|
||||
});
|
||||
|
||||
it('returns outgoing message and caches appropriately', () => {
|
||||
|
|
Loading…
Reference in a new issue