How to use the progress/Progress.configure function in progress

To help you get started, we’ve selected a few progress 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 robeio / robe-react-ui / __test__ / progress / Progress.spec.js View on Github external
it("Progress", () => {
        chai.assert.equal(Progress.instance().isStarted(), false);
        Progress.start();
        chai.assert.equal(Progress.instance().isStarted(), true);
        chai.assert.equal(Progress.instance().settings.showSpinner, false);

        Progress.configure({ showSpinner: true });
        chai.assert.equal(Progress.instance().settings.showSpinner, true);

        Progress.done();
        chai.assert.equal(Progress.instance().isStarted(), false);
    });
});