Skip to content

Commit

Permalink
♻️ Extract generateId to utils for further reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysoun committed Nov 14, 2023
1 parent 0c57bb4 commit 0b17b08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions modules/ui/cypress/e2e/project-creation-and-edition.cy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
function generateId(): string {
return Math.random().toString(16).slice(2);
}
import {generateId} from '../support/utils';

function buildProjectName(id): string {
return 'project ' + id;
Expand Down
3 changes: 3 additions & 0 deletions modules/ui/cypress/support/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function generateId(): string {
return Math.random().toString(16).slice(2);
}

0 comments on commit 0b17b08

Please sign in to comment.