Skip to content

Commit 51a5531

Browse files
committed
feat: add test for parsed opportunity state
1 parent bbb9afa commit 51a5531

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

__tests__/schema/opportunity.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5179,6 +5179,15 @@ describe('mutation parseOpportunity', () => {
51795179
],
51805180
questions: [],
51815181
});
5182+
5183+
const opportunity = await con.getRepository(OpportunityJob).findOne({
5184+
where: {
5185+
id: body.data.parseOpportunity.id,
5186+
},
5187+
});
5188+
5189+
expect(opportunity).toBeDefined();
5190+
expect(opportunity!.state).toBe(OpportunityState.DRAFT);
51825191
});
51835192

51845193
it('should parse opportunity from URL', async () => {

0 commit comments

Comments
 (0)