Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
url('^awesome/$', function() {
assert.isInstance(this, application.ApplicationInstance);
}, randomName)
),
function(assert) {
"application.app.instantiate returns a new named ApplicationInstance";
var options = {},
randomName = 'random'+Math.random();
for(var i = 0, len = Math.random()*10+1; i < len; ++i) {
options['random'+i] = i;
}
var app = application.app(options),
appInstance = app.instantiate(randomName);
assert.isInstance(appInstance, application.ApplicationInstance);
assert.equal(appInstance.name, randomName);
assert.strictEqual(appInstance.app, app);
},
function(assert) {