Skip to content

Commit de37c18

Browse files
committed
fix(memory): correct splice limit to match maxNavigationSaved semantics
1 parent d88f40d commit de37c18

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/PageCollector.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ describe('NetworkCollector', () => {
303303
page.emit('framenavigated', mainFrame);
304304
}
305305

306-
// We expect 4 arrays in navigations (current + 3 saved)
307-
// Each navigation has 1 request, so total should be 4
308-
assert.equal(collector.getData(page, true).length, 4);
306+
// We expect 3 arrays in navigations (current + 2 saved)
307+
// Each navigation has 1 request, so total should be 3
308+
assert.equal(collector.getData(page, true).length, 3);
309309
});
310310
});
311311

0 commit comments

Comments
 (0)