Fix order-dependent jasmine failure in contacts_collection_spec.js

This was failing if `app.aspect` got set by another spec than ran before it (such as one of the other specs in the same file, when run in a different order).
This commit is contained in:
Sage Ross 2022-01-15 10:31:55 -08:00 committed by Benjamin Neff
parent b195861483
commit ae3bd1f62e
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -21,6 +21,7 @@ describe("app.collections.Contacts", function(){
});
it("should compare the username if app.aspect is not present", function() {
delete app.aspect;
expect(this.collection.comparator(this.con1, this.con3)).toBeLessThan(0);
});