Skip to content

Commit 4097b7a

Browse files
CopilotneSpecc
authored andcommitted
test: add explicit error fallback in createCollection mock
Agent-Logs-Url: https://github.com/codex-team/hawk.api.nodejs/sessions/5237af31-c1bb-495f-a4d2-c59bf81d4ccc Co-authored-by: neSpecc <3684889+neSpecc@users.noreply.github.com>
1 parent 5b18d8e commit 4097b7a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/resolvers/project.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ describe('Project Resolver - createProject', () => {
557557
if (name.startsWith('dailyEvents:')) {
558558
return Promise.resolve(dailyEventsCollectionMock);
559559
}
560+
return Promise.reject(new Error(`Unexpected collection name: ${name}`));
560561
});
561562

562563
const mockProject = {

0 commit comments

Comments
 (0)