Skip to content

Commit afabf9d

Browse files
committed
Fix tests post-js-sdk-filters change
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 22b1231 commit afabf9d

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎test/app-tests/loading-test.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ describe('loading:', function() {
312312

313313
it('shows the last known room by default', function() {
314314
httpBackend.when('GET', '/pushrules').respond(200, {});
315-
httpBackend.when('POST', '/filter').respond(200, { filter_id: 'fid' });
316315

317316
loadApp();
318317

@@ -332,7 +331,6 @@ describe('loading:', function() {
332331
localStorage.removeItem("mx_last_room_id");
333332

334333
httpBackend.when('GET', '/pushrules').respond(200, {});
335-
httpBackend.when('POST', '/filter').respond(200, { filter_id: 'fid' });
336334

337335
loadApp();
338336

@@ -350,7 +348,6 @@ describe('loading:', function() {
350348

351349
it('shows a room view if we followed a room link', function() {
352350
httpBackend.when('GET', '/pushrules').respond(200, {});
353-
httpBackend.when('POST', '/filter').respond(200, { filter_id: 'fid' });
354351

355352
loadApp({
356353
uriFragment: "#/room/!room:id",
@@ -663,7 +660,6 @@ describe('loading:', function() {
663660
return sleep(1);
664661
}).then(() => {
665662
httpBackend.when('GET', '/pushrules').respond(200, {});
666-
httpBackend.when('POST', '/filter').respond(200, { filter_id: 'fid' });
667663
return expectAndAwaitSync().catch((e) => {
668664
throw new Error("Never got /sync after login: did the client start?");
669665
});

‎tsconfig.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"experimentalDecorators": true,
44
"emitDecoratorMetadata": true,
5+
"resolveJsonModule": true,
56
"module": "commonjs",
67
"moduleResolution": "node",
78
"target": "es2016",

0 commit comments

Comments
 (0)