Skip to content

Commit

Permalink
delay snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Jun 14, 2024
1 parent 8e5f534 commit 747bbde
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const updateRequestAuth =
'bearer'
);`;
const requireAModule = "const atob = require('atob');";
const delay = 'new Promise((resolve)=>setTimeout(resolve, 1000));';

const getStatusCode = 'const statusCode = insomnia.response.code;';
const getStatusMsg = 'const status = insomnia.response.status;';
Expand Down Expand Up @@ -336,6 +337,11 @@ const miscMenu: SnippetMenuItem = {
'name': 'Require a module',
'snippet': requireAModule,
},
{
'id': 'delay',
'name': 'Delay',
'snippet': delay,
},
],
};

Expand Down

0 comments on commit 747bbde

Please sign in to comment.