Minor refinements & tuning to system structure
This commit is contained in:
@@ -75,13 +75,6 @@ describe('DollsService', () => {
|
||||
const createDto = { name: 'New Doll' };
|
||||
const userId = 'user-1';
|
||||
|
||||
// Mock the transaction callback to return the doll
|
||||
jest
|
||||
.spyOn(prismaService, '$transaction')
|
||||
.mockImplementation(async (callback) => {
|
||||
return callback(prismaService);
|
||||
});
|
||||
|
||||
await service.create(userId, createDto);
|
||||
|
||||
expect(prismaService.doll.create).toHaveBeenCalledWith({
|
||||
|
||||
Reference in New Issue
Block a user