Skip to content

Commit

Permalink
test(client): update test descriptions and step ids
Browse files Browse the repository at this point in the history
  • Loading branch information
rifont committed Nov 6, 2024
1 parent e325a08 commit 0fd3267
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/framework/src/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ describe('Novu Client', () => {
expect(metadata.duration).toEqual(expect.any(Number));
});

it('should preview workflow successfully when action is preview and a non-first step is targeted', async () => {
it('should preview a non-first step in a workflow successfully when action is preview', async () => {
const newWorkflow = workflow('test-workflow', async ({ step }) => {
await step.delay(
'delay-step',
Expand All @@ -1465,15 +1465,15 @@ describe('Novu Client', () => {
}
);

await step.inApp('send-email', async () => ({ body: 'Test Body', subject: 'Subject' }));
await step.inApp('send-in-app', async () => ({ body: 'Test Body', subject: 'Subject' }));
});

client.addWorkflows([newWorkflow]);

const event: Event = {
action: PostActionEnum.PREVIEW,
workflowId: 'test-workflow',
stepId: 'send-email',
stepId: 'send-in-app',
subscriber: {},
state: [],
payload: {},
Expand Down

0 comments on commit 0fd3267

Please sign in to comment.