Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32890118
D7027.1768169632.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7027.1768169632.diff
View Options
diff --git a/keyserver/src/utils/olm-utils.test.js b/keyserver/src/utils/olm-utils.test.js
new file mode 100644
--- /dev/null
+++ b/keyserver/src/utils/olm-utils.test.js
@@ -0,0 +1,13 @@
+// @flow
+
+import olm from '@matrix-org/olm';
+
+import { getOlmUtility } from '../utils/olm-utils.js';
+
+describe('olm.Account', () => {
+ it('should get Olm Utility', async () => {
+ await olm.init();
+ const utility = getOlmUtility();
+ expect(utility).not.toBe(undefined);
+ });
+});
diff --git a/web/olm/olm.test.js b/web/olm/olm.test.js
new file mode 100644
--- /dev/null
+++ b/web/olm/olm.test.js
@@ -0,0 +1,11 @@
+// @flow
+
+import olm from '@matrix-org/olm';
+
+describe('olm.Account', () => {
+ it('should construct an empty olm.Account', async () => {
+ await olm.init();
+ const account = new olm.Account();
+ expect(account).not.toBe(undefined);
+ });
+});
diff --git a/web/package.json b/web/package.json
--- a/web/package.json
+++ b/web/package.json
@@ -87,7 +87,7 @@
},
"jest": {
"roots": [
- "<rootDir>/utils"
+ "<rootDir>"
],
"transform": {
"\\.js$": "babel-jest"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 11, 10:13 PM (4 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5920601
Default Alt Text
D7027.1768169632.diff (1 KB)
Attached To
Mode
D7027: [web] Introduce Jest tests for Olm
Attached
Detach File
Event Timeline
Log In to Comment