Plato on Github
Report Home
dojo/tests/functional/_base/loader/requirejs/simple-tests.js
Maintainability
76.60
Lines of code
23
Difficulty
7.83
Estimated Errors
0.13
Function weight
By Complexity
By SLOC
require({ baseUrl: './' }, ['require', 'map', 'simple', 'dimple', 'func', 'doh'], function (require, map, simple, dimple, func, doh) { doh.register( 'simple', [ function colors(t) { t.is('map', map.name); t.is('blue', simple.color); t.is('dimple-blue', dimple.color); t.is('You called a function', func()); } ] ); //In rhino there is no more simple tests, but in web browser there is. if (typeof moreSimpleTests === 'undefined') { doh.run(); } } );