How to use the wilson/application.ApplicationInstance function in wilson

To help you get started, we’ve selected a few wilson examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chrisdickinson / wilson / tests / urls.js View on Github external
url('^awesome/$', function() {
                    assert.isInstance(this, application.ApplicationInstance);
                }, randomName)
            ),
github chrisdickinson / wilson / tests / application.js View on Github external
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) {