Page MenuHomePhabricator

[olm] implement tests to new error messages & message order
ClosedPublic

Authored by kamil on Mar 13 2024, 9:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 12:49 PM
Unknown Object (File)
Thu, Apr 25, 12:48 PM
Unknown Object (File)
Apr 4 2024, 1:42 AM
Unknown Object (File)
Apr 2 2024, 11:49 AM
Unknown Object (File)
Apr 1 2024, 12:43 PM
Unknown Object (File)
Mar 22 2024, 1:11 AM
Unknown Object (File)
Mar 21 2024, 7:48 PM
Unknown Object (File)
Mar 20 2024, 8:58 PM
Subscribers

Details

Summary

Tests for https://github.com/CommE2E/olm/pull/12 and https://github.com/CommE2E/olm/pull/11.

After PRs are merged and the olm release is made I'll update the package.json file to the propper version and publish this diff for review.

Test Plan

Run tests

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil edited the test plan for this revision. (Show Details)
keyserver/flow-typed/npm/@commapp/olm_vx.x.x.js
80 ↗(On Diff #38102)

Looks like I missed adding this to TS types in olm repo - @ashoat do you think I should open another PR to add this?

kamil published this revision for review.Mar 15 2024, 7:21 AM
ashoat added inline comments.
keyserver/flow-typed/npm/@commapp/olm_vx.x.x.js
80 ↗(On Diff #38102)

Up to you... I'm not sure it matters very much given we don't use TS

keyserver/src/utils/olm-utils.test.js
262–263 ↗(On Diff #38102)

It's not clear to me why this line is needed

This revision is now accepted and ready to land.Mar 15 2024, 10:31 AM
keyserver/src/utils/olm-utils.test.js
262–263 ↗(On Diff #38102)

I wanted to use the same convention as with the test above. (this function can return false on create_inbound failure)