Upgrade Storybook

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Jamie Kyle 2023-10-11 12:06:43 -07:00 committed by GitHub
parent 8c966dfbd8
commit 502ea174ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
328 changed files with 10863 additions and 12432 deletions

View file

@ -7,17 +7,16 @@ import { useFakeTimers } from 'sinon';
import { sleep } from '../../util/sleep';
describe('sleep', () => {
beforeEach(function beforeEach() {
beforeEach(function (this: Mocha.Context) {
// This isn't a hook.
// eslint-disable-next-line react-hooks/rules-of-hooks
this.clock = useFakeTimers();
});
afterEach(function afterEach() {
afterEach(function (this: Mocha.Context) {
this.clock.restore();
});
it('returns a promise that resolves after the specified number of milliseconds', async function test() {
it('returns a promise that resolves after the specified number of milliseconds', async function (this: Mocha.Context) {
let isDone = false;
void (async () => {