Skip to content

Commit

Permalink
DCMAW-10799: Guidance for restructuring tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sandymay-dd committed Jan 10, 2025
1 parent ad57f5f commit a61cbd5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test-resources/src/dequeue/tests/dequeueHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,24 @@ describe("Dequeue TxMA events", () => {
});
});

describe("Given there is an error writing to Dynamo", () => {
//Dynamo rejects
});

describe("Given not all messages are processed successfully", () => {
// One passing SQS record
// One failing SQS record
});

describe("Happy path", () => {
describe("Given there is one record in the event", () => {
// happy path validation
});
describe("Given there are multiple records in the event", () => {
// happy path validation
});
});

describe("Given multiple messages are sent in the request", () => {
describe("Given one out of three messages fails to be processed", () => {
let event: SQSEvent;
Expand Down

0 comments on commit a61cbd5

Please sign in to comment.