fix(auth,backend): synchronize auth state across stores, reset guest profile data, and resolve backend spec compilation
This commit is contained in:
1 parent
4979d4120c
commit
72badb1a7b
12 files changed
+146
-48
No files matched your search
@@ -42,8 +42,8 @@ describe('OrdersController', () => {
|
||||
|
||||
it('should list orders of user', async () => {
|
||||
const req = { user: { id: 'user-id' } };
|
||||
const result = await controller.findAll(req);
|
||||
expect(service.findAllByUser).toHaveBeenCalledWith('user-id');
|
||||
const result = await controller.findAll(req, {});
|
||||
expect(service.findAllByUser).toHaveBeenCalledWith('user-id', {});
|
||||
expect(result).toHaveLength(1);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user