mirror of
https://github.com/sasjs/server.git
synced 2026-01-03 21:10:05 +00:00
chore: add spec for invalid principal type
This commit is contained in:
@@ -209,7 +209,9 @@ const createPermission = async ({
|
||||
clientId = clientInDB.clientId
|
||||
break
|
||||
default:
|
||||
throw new Error('Invalid principal type.')
|
||||
throw new Error(
|
||||
'Invalid principal type. Valid types are user, group and client.'
|
||||
)
|
||||
}
|
||||
|
||||
const savedPermission = await permission.save()
|
||||
|
||||
Reference in New Issue
Block a user