Skip to content

Commit

Permalink
chore: remove unneeded import
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeppner-dataport committed May 17, 2024
1 parent 028352b commit 2060d47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ describe(BoardCollaborationGateway.name, () => {
ioClient.emit('move-column-request', moveColumnProps);
const success = await waitForEvent(ioClient, 'move-column-success');

expect(success).toEqual(expect.objectContaining(moveColumnProps));
expect(success).toEqual(moveColumnProps);
});
});
describe('when column does not exist', () => {
Expand Down Expand Up @@ -499,12 +499,12 @@ describe(BoardCollaborationGateway.name, () => {
expect(Object.keys(success)).toEqual(expect.arrayContaining(['cardId', 'newElement']));
});

describe('when element does not exist', () => {
describe('when card does not exist', () => {
it('should answer with failure', async () => {
await setup();
const elementId = new ObjectId().toHexString();
const cardId = new ObjectId().toHexString();

ioClient.emit('create-element-request', { elementId });
ioClient.emit('create-element-request', { cardId });
const failure = await waitForEvent(ioClient, 'create-element-failure');

expect(failure).toBeDefined();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IsMongoId, IsNumber, IsString, Min, ValidateNested } from 'class-validator';
import { IsMongoId, IsNumber, IsString, ValidateNested } from 'class-validator';

export class ColumnMove {
@IsNumber()
Expand Down

0 comments on commit 2060d47

Please sign in to comment.