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:
Quentin Hibon 2021-04-15 21:26:39 +02:00 committed by GitHub
parent 38074374f4
commit 58d22048b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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', () => {