feat: refactor services injection in search and store home components, add direct purchase event tests

This commit is contained in:
2026-07-27 16:26:03 -03:00
parent f063bac527
commit 4f1405f6c1
6 changed files with 61 additions and 22 deletions

View File

@@ -83,7 +83,7 @@ describe('ProductVerticalWithCartCardComponent', () => {
) as HTMLButtonElement;
button.click();
expect(buySpy).toHaveBeenCalledOnce();
expect(buySpy).toHaveBeenCalledWith({ quantity: 1 });
});
it('emits addToCart with the current quantity', async () => {