Skip to content

Commit

Permalink
add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Sep 4, 2023
1 parent fa75941 commit 23c4bbb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ describe('TabContext', () => {

expect(documentApi.matchFrame).toBeCalledWith(tabInfo.url);
});

it('should handle cached document page relaod on tab update', () => {
const url = 'https://example.com';
const changeInfo = { status: 'loading', url };

tabContext.updateTabInfo(changeInfo);

expect(tabContext.info.title).toBe(url);
});
});

describe('incrementBlockedRequestCount method', () => {
Expand Down

0 comments on commit 23c4bbb

Please sign in to comment.