refactor: rewrite observable subscribe

This commit is contained in:
2025-01-30 21:38:04 +08:00
parent 7ff7e891fc
commit ca5f4984a4
9 changed files with 242 additions and 243 deletions

View File

@@ -39,7 +39,7 @@ describe('Redirect Service Tests', () => {
});
it('redirectTo sets window location href', () => {
const spy = vi.spyOnProperty(myDocument.location, 'href', 'set');
const spy = spyOnProperty(myDocument.location, 'href', 'set');
service.redirectTo('anyurl');
expect(spy).toHaveBeenCalledExactlyOnceWith('anyurl');