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
F3384077: D11314.diff
Thu, Nov 28, 7:15 PM
Unknown Object (File)
Mon, Nov 25, 6:59 AM
Unknown Object (File)
Fri, Nov 8, 1:52 PM
Unknown Object (File)
Fri, Nov 8, 1:39 PM
Unknown Object (File)
Fri, Nov 8, 7:15 AM
Unknown Object (File)
Fri, Nov 8, 7:15 AM
Unknown Object (File)
Fri, Nov 8, 7:15 AM
Unknown Object (File)
Fri, Nov 8, 7:15 AM
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)