diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2016-02-13 21:14:46 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2016-02-13 21:22:15 +0300 |
commit | fc5079146999d86f9a5d123dc7bd33fd03edcd35 (patch) | |
tree | fecdeb500aef1f56eef2bb2d15be583da3feda2e | |
parent | 43a0b5e09de3c363c7eb752ce77427a9159d0466 (diff) | |
download | jquery-fc5079146999d86f9a5d123dc7bd33fd03edcd35.tar.gz jquery-fc5079146999d86f9a5d123dc7bd33fd03edcd35.zip |
Tests: use `jQuery` variable instead of `$`
For some reason that works with `amd` but not with builded version
Fixes gh-2909
-rw-r--r-- | npm-debug.log | 44 | ||||
-rw-r--r-- | test/unit/dimensions.js | 2 |
2 files changed, 45 insertions, 1 deletions
diff --git a/npm-debug.log b/npm-debug.log new file mode 100644 index 000000000..9a666d8a6 --- /dev/null +++ b/npm-debug.log @@ -0,0 +1,44 @@ +0 info it worked if it ends with ok +1 verbose cli [ '/usr/local/bin/iojs', +1 verbose cli '/usr/local/bin/npm', +1 verbose cli 'run', +1 verbose cli 'precommit' ] +2 info using npm@3.3.12 +3 info using node@v5.1.0 +4 verbose run-script [ 'precommit' ] +5 info lifecycle jquery@3.0.0-pre~precommit: jquery@3.0.0-pre +6 verbose lifecycle jquery@3.0.0-pre~precommit: unsafe-perm in lifecycle true +7 verbose lifecycle jquery@3.0.0-pre~precommit: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/arkel/Workspace/jquery/node_modules/.bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/arkel/Workspace/jquery/node_modules/husky/node_modules/.bin:/Users/arkel/Workspace/jquery/node_modules/.bin:/Users/arkel/Workspace/gocode/bin:/usr/local/share/python:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:/usr/sbin/:/Users/arkel/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin +8 verbose lifecycle jquery@3.0.0-pre~precommit: CWD: /Users/arkel/Workspace/jquery +9 silly lifecycle jquery@3.0.0-pre~precommit: Args: [ '-c', 'grunt precommit_lint' ] +10 silly lifecycle jquery@3.0.0-pre~precommit: Returned: code: 3 signal: null +11 info lifecycle jquery@3.0.0-pre~precommit: Failed to exec precommit script +12 verbose stack Error: jquery@3.0.0-pre precommit: `grunt precommit_lint` +12 verbose stack Exit status 3 +12 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:232:16) +12 verbose stack at emitTwo (events.js:87:13) +12 verbose stack at EventEmitter.emit (events.js:172:7) +12 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14) +12 verbose stack at emitTwo (events.js:87:13) +12 verbose stack at ChildProcess.emit (events.js:172:7) +12 verbose stack at maybeClose (internal/child_process.js:818:16) +12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) +13 verbose pkgid jquery@3.0.0-pre +14 verbose cwd /Users/arkel/Workspace/jquery +15 error Darwin 15.3.0 +16 error argv "/usr/local/bin/iojs" "/usr/local/bin/npm" "run" "precommit" +17 error node v5.1.0 +18 error npm v3.3.12 +19 error code ELIFECYCLE +20 error jquery@3.0.0-pre precommit: `grunt precommit_lint` +20 error Exit status 3 +21 error Failed at the jquery@3.0.0-pre precommit script 'grunt precommit_lint'. +21 error Make sure you have the latest version of node.js and npm installed. +21 error If you do, this is most likely a problem with the jquery package, +21 error not with npm itself. +21 error Tell the author that this fails on your system: +21 error grunt precommit_lint +21 error You can get their info via: +21 error npm owner ls jquery +21 error There is likely additional logging output above. +22 verbose exit [ 1, true ] diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index 0b568dd86..704f27c64 100644 --- a/test/unit/dimensions.js +++ b/test/unit/dimensions.js @@ -488,7 +488,7 @@ QUnit.test( "outside view position (gh-2836)", function( assert ) { ].join( "" ), stop = assert.async(); - parent = $( html ); + parent = jQuery( html ); parent.appendTo( "#qunit-fixture" ); parent.one( "scroll", function() { |