Browse Source

Fix failing groupStore spec

Ben Vinegar 9 years ago
parent
commit
37a9bf892d
1 changed files with 5 additions and 2 deletions
  1. 5 2
      tests/js/spec/stores/groupStore.spec.jsx

+ 5 - 2
tests/js/spec/stores/groupStore.spec.jsx

@@ -42,7 +42,9 @@ describe('GroupStore', function () {
       this.sandbox.stub(GroupStore, 'trigger');
       GroupStore.onUpdate(1337, undefined, 'somedata');
 
-      expect(GroupStore.trigger.withArgs(new Set([1,2,3])).calledOnce).to.be.ok;
+
+      expect(GroupStore.trigger.calledOnce).to.be.ok;
+      expect(GroupStore.trigger.firstCall.args[0]).to.eql(new Set([1,2,3]));
     });
   });
 
@@ -57,7 +59,8 @@ describe('GroupStore', function () {
       this.sandbox.stub(GroupStore, 'trigger');
       GroupStore.onUpdateSuccess(1337, undefined, 'somedata');
 
-      expect(GroupStore.trigger.withArgs(new Set([1,2,3])).calledOnce).to.be.ok;
+      expect(GroupStore.trigger.calledOnce).to.be.ok;
+      expect(GroupStore.trigger.firstCall.args[0]).to.eql(new Set([1,2,3]));
     });
   });
 });