for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
var jsondash = require('../flask_jsondash/static/js/app');
describe('dashEvents', function(){
it('Should recognize all events', function(){
function testEvent(name) {
$('body').on(name, function(e){
e
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.
console.log('Event ran: ' + name);
console.log
});
}
$.each(EVENTS, function(k, name){
EVENTS
/** global: EVENTS */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
testEvent(name);
// expect(jsondash.util.scaleStr('50%', '50%')).toBe('scale(50%,50%)');
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.