Skip to content

Commit

Permalink
[FIX ManyArray] Evented.off requires a reference to the original call…
Browse files Browse the repository at this point in the history
…back
  • Loading branch information
runspired committed Apr 4, 2019
1 parent 75c77a7 commit 081432c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/relationships/has-many-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1311,12 +1311,12 @@ test('PromiseArray proxies evented methods to its ManyArray', function(assert) {
});

assert.equal(comments.has('on-event'), true);
const cb = function() {
assert.ok(false, 'We should not trigger this event');
};

comments.on('off-event', function() {
assert.ok(false);
});

comments.off('off-event');
comments.on('off-event', cb);
comments.off('off-event', cb);

assert.equal(comments.has('off-event'), false);

Expand Down

0 comments on commit 081432c

Please sign in to comment.