JSFiddle - React, Tailwind, and code Playground

by TeslaNick

JavaScript

NS.MainTests = new Y.Test.Case({
    name: "Main Application Tests",

    setUp: function() {
        this.app = app = new Y.crm.Main({
            container: appNode
        });
    },

    tearDown: function() {
        this.app.destroy();
    },

    "Main application default route should be /task/list": function() {
        var test = this;

        this.app.once('ready', function() {
            console.log("HERE");

            test.resume(function() {
                console.log("ALSO HERE");
            });
        });
        
        this.wait(5000);
    }
});

Y.Test.Runner.add(NS.MainTests);