Skip to content

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alpemreelmas committed Jun 1, 2024
1 parent 37b6b8e commit 05b1c5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ RUN rm package*.json

EXPOSE 3000

CMD ["node", "./dist/seeder.js"]
CMD ["node", "./dist/main.js"]
CMD ["node", "./dist/seeder.js"]
6 changes: 3 additions & 3 deletions src/daily/daily.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ describe('DailyController', () => {
});

it('should call dailyService.create with correct parameters', async () => {
const req = { user: { id: 1, name: 'Test User' } };
const req = { user: { id: 1, name: 'Test User' } } as unknown as Request;
const createDailyDto: CreateDailyDto = {
content: 'this is a test !',
orderId: 1,
};
} as CreateDailyDto;

const result = {};

jest.spyOn(service, 'create').mockResolvedValue(result);

expect(await controller.create(req, createDailyDto)).toBe(result);
expect(service.create).toHaveBeenCalledWith(createDailyDto, req.user);
expect(service.create).toHaveBeenCalledWith(createDailyDto, req['user']);
});
});

0 comments on commit 05b1c5a

Please sign in to comment.