Skip to content

Commit

Permalink
Fix linter issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeold committed Nov 6, 2024
1 parent 4b188d0 commit 39c44d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/functions/src/callable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ describe('Firebase Functions > Stream', () => {
expect((error as FunctionsError).code).to.equal(`${FUNCTIONS_TYPE}/internal`);
}
expect(errorThrown).to.be.true;
await expectError(streamResult.data, "internal", "Internal");
await expectError(streamResult.data, "internal", "internal");
});

it('handles server-side errors', async () => {
Expand Down Expand Up @@ -524,7 +524,7 @@ describe('Firebase Functions > Stream', () => {
expect((error as FunctionsError).code).to.equal(`${FUNCTIONS_TYPE}/cancelled`);
}
expect(errorThrown).to.be.true;
await expectError(streamResult.data, "cancelled", "Request was cancelled");
await expectError(streamResult.data, "cancelled", "Request was cancelled.");
});

it('aborts during streaming', async () => {
Expand Down Expand Up @@ -566,7 +566,7 @@ describe('Firebase Functions > Stream', () => {
expect((error as FunctionsError).code).to.equal(`${FUNCTIONS_TYPE}/cancelled`);
}
expect(messages).to.deep.equal(['First']);
await expectError(streamResult.data, "cancelled", "Request was cancelled");
await expectError(streamResult.data, "cancelled", "Request was cancelled.");
});

it('fails immediately with pre-aborted signal', async () => {
Expand All @@ -591,7 +591,7 @@ describe('Firebase Functions > Stream', () => {
expect((error as FunctionsError).code).to.equal(`${FUNCTIONS_TYPE}/cancelled`);
}
expect(errorThrown).to.be.true;
await expectError(streamResult.data, "cancelled", "Request was cancelled");
await expectError(streamResult.data, "cancelled", "Request was cancelled.");
});

it('properly handles AbortSignal.timeout()', async () => {
Expand Down Expand Up @@ -623,6 +623,6 @@ describe('Firebase Functions > Stream', () => {
} catch (error) {
expect((error as FunctionsError).code).to.equal(`${FUNCTIONS_TYPE}/cancelled`);
}
await expectError(streamResult.data, "cancelled", "Request was cancelled");
await expectError(streamResult.data, "cancelled", "Request was cancelled.");
});
});

0 comments on commit 39c44d5

Please sign in to comment.