Permalink
Browse files

fix spec test for add an extension twice

  • Loading branch information...
1 parent 0f6bd80 commit 6c2a18ce9a634c40bceecf2b4376032c86571e3c @rspindel committed Apr 9, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 spec/lib/aura.extensions_spec.js
@@ -47,8 +47,7 @@ define(['aura/aura.extensions'], function (ExtManager) {
it('Should not be possible to add an extension twice', function () {
var mgr = new ExtManager();
var ext = { ref: sinon.spy(), context: '123' };
- var addExt = function () { mgr.add(ext); };
- addExt();
+ var addExt = function () { mgr.add(ext); mgr.add(ext) };
addExt.should.Throw(Error);
});

0 comments on commit 6c2a18c

Please sign in to comment.