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

@ -32,7 +32,7 @@ describe('ChallengeHandler', () => {
let challengeStatus = 'idle';
let queuesStarted: Array<string> = [];
beforeEach(function beforeEach() {
beforeEach(function (this: Mocha.Context) {
storage.clear();
challengeStatus = 'idle';
queuesStarted = [];
@ -43,7 +43,7 @@ describe('ChallengeHandler', () => {
});
});
afterEach(function afterEach() {
afterEach(function (this: Mocha.Context) {
this.sandbox.restore();
});
@ -123,7 +123,7 @@ describe('ChallengeHandler', () => {
);
};
it('should automatically start queue after timeout', async function test() {
it('should automatically start queue after timeout', async function (this: Mocha.Context) {
const handler = await createHandler();
const one = createChallenge('1');
@ -138,7 +138,7 @@ describe('ChallengeHandler', () => {
assert.isFalse(isInStorage(one.conversationId));
});
it('should send challenge response', async function test() {
it('should send challenge response', async function (this: Mocha.Context) {
const handler = await createHandler({ autoSolve: true });
const one = createChallenge('1', {
@ -154,7 +154,7 @@ describe('ChallengeHandler', () => {
assert.equal(challengeStatus, 'idle');
});
it('should send old challenges', async function test() {
it('should send old challenges', async function (this: Mocha.Context) {
const handler = await createHandler();
const challenges = [
@ -212,7 +212,7 @@ describe('ChallengeHandler', () => {
assert.deepEqual(queuesStarted, [one.conversationId]);
});
it('should not retry expired challenges', async function test() {
it('should not retry expired challenges', async function (this: Mocha.Context) {
const handler = await createHandler();
const one = createChallenge('1');
@ -238,7 +238,7 @@ describe('ChallengeHandler', () => {
assert.isFalse(isInStorage(one.conversationId));
});
it('should send challenges that matured while we were offline', async function test() {
it('should send challenges that matured while we were offline', async function (this: Mocha.Context) {
const handler = await createHandler();
const one = createChallenge('1');
@ -265,7 +265,7 @@ describe('ChallengeHandler', () => {
assert.equal(challengeStatus, 'idle');
});
it('should trigger onChallengeSolved', async function test() {
it('should trigger onChallengeSolved', async function (this: Mocha.Context) {
const onChallengeSolved = sinon.stub();
const handler = await createHandler({
@ -284,7 +284,7 @@ describe('ChallengeHandler', () => {
sinon.assert.calledOnce(onChallengeSolved);
});
it('should trigger onChallengeFailed', async function test() {
it('should trigger onChallengeFailed', async function (this: Mocha.Context) {
const onChallengeFailed = sinon.stub();
const handler = await createHandler({