-
-
Notifications
You must be signed in to change notification settings - Fork 650
test typescriptification - spec/integ #2714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
0704741
renamed: spec/integ/devicelist-integ.spec.js -> spec/integ/devicel…
8a6087a
fix ts issue in devicelist-integ.spec
5c87d94
renamed: spec/integ/matrix-client-event-emitter.spec.js -> spec/in…
da227d8
ts issues in matrix-client-event-emitter integ
27ff2a0
strict fixes
88c37c8
renamed: spec/integ/matrix-client-methods.spec.js -> spec/integ/ma…
e49193b
fix ts issues
8de9de2
renamed: spec/integ/matrix-client-opts.spec.js -> spec/integ/matri…
09a6714
Merge branch 'develop' into kerry/ts-jest-integ
08f1275
ts fixes in matrix-client-methods / matrix-client-opts
3c30cc5
renamed: spec/integ/matrix-client-room-timeline.spec.js -> spec/in…
41d403b
most ts fixes in matrix-client-room-timeline
ee0584c
remove obsoleted prev_events from mockenvents
669a7e3
make xmlhttprequest ts
3071582
strict errors in matrix-client-event-timeline spec
5f1b5c1
strict in devicelist
4505fa9
strict fixes in matrix-client-crypto.spec
1be7660
strict fixes in spec/integ/matrix-client-room-timeline
28c15a8
strict issues in matrix-client-opts.specc
403c7fb
strict issues in matrix-client-syncing
7ec3ed2
strict issues in spec/integ/megolm
b552258
strict fixes in spec/integ/matrix-client-retrying.spec
317a6a8
strict fixes for spec/integ/sliding-sync
0ff39d0
eslint fixes
978cdc7
Merge branch 'develop' into kerry/ts-jest-integ
b200296
more strict errors sneaking in from develop
9f1d830
kill al httpbackends
51925f0
kill matrix-client-methods.spec httpbackend properly
fcdb04c
Merge branch 'develop' into kerry/ts-jest-integ
85c5c9b
Merge branch 'develop' into kerry/ts-jest-integ
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -122,7 +122,7 @@ describe("DeviceList management:", function() { | |
| aliceTestClient.httpBackend.when( | ||
| 'PUT', '/send/', | ||
| ).respond(200, { | ||
| event_id: '$event_id', | ||
| event_id: '$event_id', | ||
| }); | ||
|
|
||
| return Promise.all([ | ||
|
|
@@ -290,8 +290,9 @@ describe("DeviceList management:", function() { | |
| aliceTestClient.client.cryptoStore.getEndToEndDeviceData(null, (data) => { | ||
| const bobStat = data.trackingStatus['@bob:xyz']; | ||
|
|
||
| // Alice should be tracking bob's device list | ||
| expect(bobStat).toBeGreaterThan( | ||
| 0, "Alice should be tracking bob's device list", | ||
| 0, | ||
| ); | ||
| }); | ||
| }); | ||
|
|
@@ -326,8 +327,9 @@ describe("DeviceList management:", function() { | |
| aliceTestClient.client.cryptoStore.getEndToEndDeviceData(null, (data) => { | ||
| const bobStat = data.trackingStatus['@bob:xyz']; | ||
|
|
||
| // Alice should have marked bob's device list as untracked | ||
| expect(bobStat).toEqual( | ||
| 0, "Alice should have marked bob's device list as untracked", | ||
| 0, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Likewise |
||
| ); | ||
| }); | ||
| }); | ||
|
|
@@ -362,8 +364,9 @@ describe("DeviceList management:", function() { | |
| aliceTestClient.client.cryptoStore.getEndToEndDeviceData(null, (data) => { | ||
| const bobStat = data.trackingStatus['@bob:xyz']; | ||
|
|
||
| // Alice should have marked bob's device list as untracked | ||
| expect(bobStat).toEqual( | ||
| 0, "Alice should have marked bob's device list as untracked", | ||
| 0, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ^ |
||
| ); | ||
| }); | ||
| }); | ||
|
|
@@ -378,13 +381,15 @@ describe("DeviceList management:", function() { | |
| anotherTestClient.httpBackend.when('GET', '/sync').respond( | ||
| 200, getSyncResponse([])); | ||
| await anotherTestClient.flushSync(); | ||
| await anotherTestClient.client.crypto.deviceList.saveIfDirty(); | ||
| await anotherTestClient.client?.crypto?.deviceList?.saveIfDirty(); | ||
|
|
||
| // @ts-ignore accessing private property | ||
| anotherTestClient.client.cryptoStore.getEndToEndDeviceData(null, (data) => { | ||
| const bobStat = data.trackingStatus['@bob:xyz']; | ||
| const bobStat = data!.trackingStatus['@bob:xyz']; | ||
|
|
||
| // Alice should have marked bob's device list as untracked | ||
| expect(bobStat).toEqual( | ||
| 0, "Alice should have marked bob's device list as untracked", | ||
| 0, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ^ |
||
| ); | ||
| }); | ||
| } finally { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May as well just make this a single line