Skip to content

Commit 37eb015

Browse files
committed
test: Tighten no-token assertions for /sessions/me
1 parent 89e5172 commit 37eb015

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/ParseSession.spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ describe('Parse.Session', () => {
285285
},
286286
body: JSON.stringify({}),
287287
}).catch(e => e);
288-
expect(response.status).not.toBe(500);
288+
expect(response.status).toBeGreaterThanOrEqual(400);
289+
expect(response.status).toBeLessThan(500);
290+
expect(response.data?.code).toBeDefined();
289291
});
290292
});
291293

@@ -313,7 +315,9 @@ describe('Parse.Session', () => {
313315
'X-Parse-REST-API-Key': 'rest',
314316
},
315317
}).catch(e => e);
316-
expect(response.status).not.toBe(500);
318+
expect(response.status).toBeGreaterThanOrEqual(400);
319+
expect(response.status).toBeLessThan(500);
320+
expect(response.data?.code).toBeDefined();
317321
});
318322
});
319323
});

0 commit comments

Comments
 (0)