mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-22 19:41:53 +03:00
Merge remote-tracking branch 'origin/main' into fix/single-workspace-mode-with-multiple-workspaces
This commit is contained in:
commit
56daedb78f
@ -66,8 +66,15 @@ describe('RefreshTokenService', () => {
|
||||
describe('verifyRefreshToken', () => {
|
||||
it('should verify a refresh token successfully', async () => {
|
||||
const mockToken = 'valid-refresh-token';
|
||||
const mockJwtPayload = { jti: 'token-id', sub: 'user-id' };
|
||||
const mockAppToken = { id: 'token-id', revokedAt: null };
|
||||
const mockJwtPayload = {
|
||||
jti: 'token-id',
|
||||
sub: 'user-id',
|
||||
};
|
||||
const mockAppToken = {
|
||||
id: 'token-id',
|
||||
workspaceId: 'workspace-id',
|
||||
revokedAt: null,
|
||||
};
|
||||
const mockUser: Partial<User> = {
|
||||
id: 'some-id',
|
||||
firstName: 'John',
|
||||
|
@ -5,8 +5,8 @@ import { createOneRelationMetadataFactory } from 'test/integration/metadata/suit
|
||||
import { deleteOneRelationMetadataItemFactory } from 'test/integration/metadata/suites/utils/delete-one-relation-metadata-factory.util';
|
||||
import { fieldsMetadataFactory } from 'test/integration/metadata/suites/utils/fields-metadata-factory.util';
|
||||
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
|
||||
import { objectsMetadataFactory } from 'test/integration/metadata/suites/utils/objects-metadata-factory.util';
|
||||
import { updateOneObjectMetadataItemFactory } from 'test/integration/metadata/suites/utils/update-one-object-metadata-factory.util';
|
||||
import { updateOneObjectMetadataItemFactory } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata-factory.util';
|
||||
import { objectsMetadataFactory } from 'test/integration/metadata/suites/object-metadata/utils/objects-metadata-factory.util';
|
||||
|
||||
import { FieldMetadataType } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
|
||||
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
|
||||
|
Loading…
Reference in New Issue
Block a user