Skip to content

Commit d4b5f6a

Browse files
committed
fix: fixing error messages in tests
1 parent 54cd6b1 commit d4b5f6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/middleware-bucket-endpoint/src/bucketHostname.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ describe("bucketHostname", () => {
742742
accelerateEndpoint: true,
743743
});
744744
// should never get here
745-
expect(1).toEqual(0);
745+
expect.assertions(1);
746746
} catch (e) {
747747
// should throw since these are error cases
748748
expect(1).toEqual(1);
@@ -759,7 +759,7 @@ describe("bucketHostname", () => {
759759
dualstackEndpoint: true,
760760
});
761761
// should never get here
762-
expect(1).toEqual(0);
762+
expect.assertions(1);
763763
} catch (e) {
764764
// should throw since these are error cases
765765
expect(1).toEqual(1);
@@ -910,7 +910,7 @@ describe("bucketHostname", () => {
910910
useArnRegion: useArnRegion,
911911
});
912912
// should never get here
913-
expect(1).toEqual(0);
913+
expect.assertions(1);
914914
} catch (e) {
915915
// should throw since these are error cases
916916
expect(1).toEqual(1);

0 commit comments

Comments
 (0)