Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
});
});
componentDidMount() {
Progress.done();
}
componentDidUpdate() {
Progress.done();
}
}
componentDidUpdate() {
Progress.done();
}
}