Skip to content

Commit

Permalink
Fix type test in generateFakeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jNullj committed Feb 20, 2024
1 parent 419bd01 commit a2b838c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/test-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function generateFakeConfig(
if (!fakeKey || typeof fakeKey !== 'string') {
throw new TypeError('Invalid fakeKey: Must be a String.')
}
if (!fakeauthorizedOrigins || typeof fakeauthorizedOrigins !== 'object') {
if (!fakeauthorizedOrigins || !Array.isArray(fakeauthorizedOrigins)) {
throw new TypeError('Invalid fakeauthorizedOrigins: Must be an array.')
}

Expand Down

0 comments on commit a2b838c

Please sign in to comment.