Fix order-dependent failure in app_spec.js

The 'sets the user' spec was failing if run after a spec that had already set the user.
This commit is contained in:
Sage Ross 2022-01-15 11:46:22 -08:00 committed by Benjamin Neff
parent ae3bd1f62e
commit b2ee986815
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -33,6 +33,10 @@ describe("app", function() {
});
describe("user", function() {
beforeEach(function() {
logout();
});
it("returns false if the current_user isn't set", function() {
app._user = undefined;
expect(app.user()).toEqual(false);