refactor: api key spec to use factories (#16776)
This commit is contained in:
Vendored
-20
@@ -1,20 +0,0 @@
|
||||
import { authStub } from 'test/fixtures/auth.stub';
|
||||
import { userStub } from 'test/fixtures/user.stub';
|
||||
|
||||
export const keyStub = {
|
||||
authKey: Object.freeze({
|
||||
id: 'my-random-guid',
|
||||
key: 'my-api-key (hashed)',
|
||||
user: userStub.admin,
|
||||
permissions: [],
|
||||
} as any),
|
||||
|
||||
admin: Object.freeze({
|
||||
id: 'my-random-guid',
|
||||
name: 'My Key',
|
||||
key: 'my-api-key (hashed)',
|
||||
userId: authStub.admin.user.id,
|
||||
user: userStub.admin,
|
||||
permissions: [],
|
||||
} as any),
|
||||
};
|
||||
Reference in New Issue
Block a user