Skip to content

Commit

Permalink
tes: fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fgiova committed Nov 15, 2023
1 parent ae9c61c commit e90d3db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ test("MiniSQSClient Errors", async (t) => {
}).reply(500, "Generic Error");
await t.rejects(client.sendMessage(queueARN,message), Error("Generic Error"));
});
await t.test("sendMessage Error wrong region", async (t) => {
const { client } = t.context;
const message: SendMessage = {
MessageBody: "Hello World!"
};
await t.rejects(client.sendMessage("arn:aws:sqs:eu-west-1:000000000000:test",message), Error("Region eu-west-1 does not match eu-central-1"));
});

await t.test("sendMessageBatch Error", async (t) => {
const { client } = t.context;
Expand Down

0 comments on commit e90d3db

Please sign in to comment.