From bcda501864b70a1c13bf14c4e76692d0f002fe27 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 15 Jan 2020 14:44:46 -0700 Subject: [PATCH] Replace usages of expect.toStartWith with boolean checks --- test/app-tests/loading-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/app-tests/loading-test.js b/test/app-tests/loading-test.js index 090024f0a..fd4d39703 100644 --- a/test/app-tests/loading-test.js +++ b/test/app-tests/loading-test.js @@ -464,7 +464,7 @@ describe('loading:', function() { assertAtLoadingSpinner(matrixChat); httpBackend.when('POST', '/register').check(function(req) { - expect(req.path).toStartWith(DEFAULT_HS_URL); + expect(req.path.startsWith(DEFAULT_HS_URL)).toBe(true); expect(req.queryParams.kind).toEqual('guest'); }).respond(200, { user_id: "@guest:localhost", @@ -477,7 +477,7 @@ describe('loading:', function() { }).then(() => { return expectAndAwaitSync({isGuest: true}); }).then((req) => { - expect(req.path).toStartWith(DEFAULT_HS_URL); + expect(req.path.startsWith(DEFAULT_HS_URL)).toBe(true); // once the sync completes, we should have a welcome page httpBackend.verifyNoOutstandingExpectation();