Skip to content

Commit a6f34ca

Browse files
antfuCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 96bc7ad commit a6f34ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/hub/src/client/__tests__/frame-location.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ describe('watchFrameLocation', () => {
160160
watchFrameLocation({ iframe: frame.iframe, onChange, initial: 'http://localhost/app/' })
161161

162162
frame.pushState('http://localhost/app/routes')
163-
expect(onChange).toHaveBeenCalledExactlyOnceWith('http://localhost/app/routes')
163+
expect(onChange).toHaveBeenCalledTimes(1)
164+
expect(onChange).toHaveBeenLastCalledWith('http://localhost/app/routes')
164165
})
165166

166167
it('catches a navigation the wrapper cannot see, via currententrychange', () => {

0 commit comments

Comments
 (0)