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)
Nov 28 2024, 10:13 PM
Unknown Object (File)
Nov 28 2024, 9:52 PM
Unknown Object (File)
Nov 28 2024, 7:15 PM
Unknown Object (File)
Nov 25 2024, 6:59 AM
Unknown Object (File)
Nov 8 2024, 1:52 PM
Unknown Object (File)
Nov 8 2024, 1:39 PM
Unknown Object (File)
Nov 8 2024, 7:15 AM
Unknown Object (File)
Nov 8 2024, 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)