Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Nov 8, 2024
1 parent 8948fed commit a96ae90
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions jest.global-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ const createUser = (userId, userName, role, owner = 0, enabled = 1) => {
if (missingParams.length > 0) {
throw new Error(`Missing required parameters: ${missingParams.join(', ')}`);
}

if (typeof userId !== 'string' || typeof userName !== 'string' || typeof role !== 'string') {
throw new Error('Invalid parameter types. userId, userName, and role must be strings');

if (
typeof userId !== 'string' ||
typeof userName !== 'string' ||
typeof role !== 'string'
) {
throw new Error(
'Invalid parameter types. userId, userName, and role must be strings',
);
}

try {
Expand Down

0 comments on commit a96ae90

Please sign in to comment.