From ae3bd1f62e7eefbec29192a1252a70975df461a7 Mon Sep 17 00:00:00 2001 From: Sage Ross Date: Sat, 15 Jan 2022 10:31:55 -0800 Subject: [PATCH] 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). --- spec/javascripts/app/collections/contacts_collection_spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/javascripts/app/collections/contacts_collection_spec.js b/spec/javascripts/app/collections/contacts_collection_spec.js index 3b64d4bd9..a2342851d 100644 --- a/spec/javascripts/app/collections/contacts_collection_spec.js +++ b/spec/javascripts/app/collections/contacts_collection_spec.js @@ -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); });