From a069f34ad680dcd6eef35b02eb7f0e269f95e1ef Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 16 Sep 2014 09:23:52 -0600 Subject: [PATCH] Fix CommandRegistry::findCommands spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don’t assert against commands registered on the window with jQuery --- spec/command-registry-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/command-registry-spec.coffee b/spec/command-registry-spec.coffee index 32f87a44c..8985e075b 100644 --- a/spec/command-registry-spec.coffee +++ b/spec/command-registry-spec.coffee @@ -119,7 +119,7 @@ describe "CommandRegistry", -> registry.add '.grandchild', 'namespace:command-3', -> registry.add '.grandchild.no-match', 'namespace:command-4', -> - expect(registry.findCommands(target: grandchild)).toEqual [ + expect(registry.findCommands(target: grandchild)[0..2]).toEqual [ {name: 'namespace:command-3', displayName: 'Namespace: Command 3'} {name: 'namespace:command-2', displayName: 'Namespace: Command 2'} {name: 'namespace:command-1', displayName: 'Namespace: Command 1'}