Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensure destination callbacks receive arguments

  • Loading branch information...
commit 800741e638f8015b662d08b5ec78040b9c4868f4 1 parent d9f3426
@bemson authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/api.tag.next.js
View
10 test/api.tag.next.js
@@ -105,6 +105,16 @@ describe( '_next tag', function () {
salt.state.index.should.equal(1);
});
+ it( 'should not prevent destination callbacks from receiving arguments', function () {
+ var arg = {};
+ salt = new Salt({
+ _next: 0,
+ _on: onSpy
+ });
+ salt.get(1, arg);
+ onSpy.should.have.been.calledWithExactly(arg);
+ });
+
describe( 'prefixed with a ">"', function () {
it( 'should set a new destination state', function () {
Please sign in to comment.
Something went wrong with that request. Please try again.