Skip to content

Commit

Permalink
Added tests for boolean values.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Mar 17, 2011
1 parent 330761a commit 8f037ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit.js
Expand Up @@ -32,6 +32,13 @@ test( "number", function() {
strictEqual( $.cookie( "test" ), 5, "retrieved" );
});

test( "boolean", function() {
expect( 2 );
$.cookie( "test", true );
equal( document.cookie, "test=true", "stored" )
strictEqual( $.cookie( "test" ), true, "retrieved" );
});

test( "array", function() {
expect( 2 );
$.cookie( "test", [ "a", 2 ] );
Expand Down

0 comments on commit 8f037ee

Please sign in to comment.