diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-09-08 04:02:51 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-09-08 04:26:33 +0300 |
commit | d8b7e7b0bd047f02890de2874cafdd3e0f8dd608 (patch) | |
tree | 9fe3727268ee40dbf37bdb4587966c2cf4c5ef0a /test/unit/data.js | |
parent | 2f0cedc9972efa4bf9eb656001a098d9c51e53ec (diff) | |
download | jquery-d8b7e7b0bd047f02890de2874cafdd3e0f8dd608.tar.gz jquery-d8b7e7b0bd047f02890de2874cafdd3e0f8dd608.zip |
Tests: more style corrections
Provocated by jscs-dev/node-jscs@2de68c0
Ref c161eecce09fc66ce252d4adf64b565f726bb6d2
Diffstat (limited to 'test/unit/data.js')
-rw-r--r-- | test/unit/data.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit/data.js b/test/unit/data.js index 5a232c401..20d7c27d0 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -535,8 +535,8 @@ QUnit.test( "data-* attributes", function( assert ) { child.data( "notjson" ), " {}", "JSON object with leading non-JSON read from attribute as string" ); assert.strictEqual( - child.data("notjson2"), "[] ", - "JSON array with trailing non-JSON read from attribute as string"); + child.data( "notjson2" ), "[] ", + "JSON array with trailing non-JSON read from attribute as string" ); assert.strictEqual( child.data( "empty" ), "", "Empty string read from attribute" ); @@ -1128,8 +1128,9 @@ QUnit.test( ".data(prop) does not create expando", function( assert ) { var key, div = jQuery( "<div/>" ); - div.data("foo"); - assert.equal( false, jQuery.hasData( div[0] ) ); + div.data( "foo" ); + assert.equal( false, jQuery.hasData( div[ 0 ] ) ); + // Make sure no expando has been added for ( key in div[ 0 ] ) { if ( /^jQuery/.test( key ) ) { |