Skip to content

Commit

Permalink
component tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajaneeshkumar committed May 17, 2024
1 parent 01c3161 commit 8f2aad2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/component/bdd.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ describe('BDD', () => {
});

it('Should sleep after spec', async () => {
const spec = pactum.spec();
spec.useInteraction('default get');
await spec.get('http://localhost:9393/default/get').expectStatus(200).sleep(3000);
await spec.get('http://localhost:9393/default/get').expectStatus(200).sleep(2000).toss();
});

});
Expand Down
2 changes: 1 addition & 1 deletion test/component/spec.handler.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ describe('Spec Handler', () => {
id: 2
}
])
.sleep(3000);
.sleep(2000);
});
});

0 comments on commit 8f2aad2

Please sign in to comment.