Merge remote-tracking branch 'origin/main' into fix/single-workspace-mode-with-multiple-workspaces

This commit is contained in:
Antoine Moreaux 2024-12-19 15:27:21 +01:00
commit 56daedb78f
2 changed files with 11 additions and 4 deletions

View File

@ -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',

View File

@ -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';