mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Replace usages of expect.toStartWith with boolean checks
This commit is contained in:
parent
c70d21a92e
commit
bcda501864
@ -464,7 +464,7 @@ describe('loading:', function() {
|
|||||||
assertAtLoadingSpinner(matrixChat);
|
assertAtLoadingSpinner(matrixChat);
|
||||||
|
|
||||||
httpBackend.when('POST', '/register').check(function(req) {
|
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');
|
expect(req.queryParams.kind).toEqual('guest');
|
||||||
}).respond(200, {
|
}).respond(200, {
|
||||||
user_id: "@guest:localhost",
|
user_id: "@guest:localhost",
|
||||||
@ -477,7 +477,7 @@ describe('loading:', function() {
|
|||||||
}).then(() => {
|
}).then(() => {
|
||||||
return expectAndAwaitSync({isGuest: true});
|
return expectAndAwaitSync({isGuest: true});
|
||||||
}).then((req) => {
|
}).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
|
// once the sync completes, we should have a welcome page
|
||||||
httpBackend.verifyNoOutstandingExpectation();
|
httpBackend.verifyNoOutstandingExpectation();
|
||||||
|
Loading…
Reference in New Issue
Block a user