Skip to content

Commit d5a28dd

Browse files
author
Mat Jones
committed
increase coverage for result-error-record-factory.ts
1 parent e99ef55 commit d5a28dd

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

src/utilities/do-try.test.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ describe("do-try.ts", () => {
1616
// Arrange
1717
const workload = async () => {
1818
throw ResultRecordFactory.build({
19-
errors: [
20-
ResultErrorRecordFactory.build({
21-
key: "TEST_ERROR_KEY",
22-
message: "This is an error",
23-
}),
24-
],
19+
errors: [ResultErrorRecordFactory.build()],
2520
});
2621
};
2722

@@ -141,12 +136,7 @@ describe("do-try.ts", () => {
141136
// Arrange
142137
const workload = () => {
143138
throw ResultRecordFactory.build({
144-
errors: [
145-
ResultErrorRecordFactory.build({
146-
key: "TEST_ERROR_KEY",
147-
message: "This is an error",
148-
}),
149-
],
139+
errors: [ResultErrorRecordFactory.build()],
150140
});
151141
};
152142

0 commit comments

Comments
 (0)