aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/data.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-09-08 04:02:51 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-09-08 04:26:33 +0300
commitd8b7e7b0bd047f02890de2874cafdd3e0f8dd608 (patch)
tree9fe3727268ee40dbf37bdb4587966c2cf4c5ef0a /test/unit/data.js
parent2f0cedc9972efa4bf9eb656001a098d9c51e53ec (diff)
downloadjquery-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.js9
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 ) ) {