Search the Community
Showing results for tags 'karma'.
-
I'm attempting to test an object for my company in Karma that relies on 'draggable'. 'draggable' was built off of path: { 'draggable' : 'http://cdnjs.cloudflare.com/ajax/libs/gsap/1.15.0/utils/Draggable.min' //1.15.0 'TweenLite' : 'http://cdnjs.cloudflare.com/ajax/libs/gsap/1.15.0/TweenLite.min' //1.15.0 'cssPlugin' : 'http://cdnjs.cloudflare.com/ajax/libs/gsap/1.15.0/plugins/CSSPlugin.min' //1.15.0 } shim: { 'draggable' : { deps : ['TweenLite', 'cssPlugin'] }, } All of the tests I built passed fine, I updated my branch to reflect my companies' changes on master where they updated the path to path: { 'draggable' : 'http://cdnjs.cloudflare.com/ajax/libs/gsap/1.17.0/utils/Draggable.min' // 1.17.0 'TweenLite' : 'http://cdnjs.cloudflare.com/ajax/libs/gsap/1.17.0/TweenLite.min' // 1.17.0 'cssPlugin' : 'http://cdnjs.cloudflare.com/ajax/libs/gsap/1.17.0/plugins/CSSPlugin.min' // 1.17.0 } This caused a script error in the tests with the top stacktrace pointing to: TypeError: 'null' is not an object (evaluating 's.boxSizing') at http://cdnjs.cloudflare.com/ajax/libs/gsap/1.17.0/utils/Draggable.min.js:14 In an attempt to debug this I was able to tweak the code to work with this path setup: path: { 'draggable' : 'http://cdnjs.cloudflare.com/ajax/libs/gsap/1.16.1/utils/Draggable.min' // 1.16.1 'TweenLite' : 'http://cdnjs.cloudflare.com/ajax/libs/gsap/1.17.0/TweenLite.min' //1.17.0 'cssPlugin' : 'http://cdnjs.cloudflare.com/ajax/libs/gsap/1.17.0/plugins/CSSPlugin.min' //1.17.0 } I looked at the github repos for both 1.16.1 and 1.17.0. I found that s.boxSizing does not exist on 1.16.1 so I'm going to guess that in 1.17.0 s.boxSizing is grabbed without checking to see if 's' is not null. I was wondering if there was any way the CS team here could verify what I was thinking.