jest test

This commit is contained in:
Beverly Nguyen
2025-06-23 15:13:24 -07:00
parent 9414929b8a
commit cdfbc79982

View File

@@ -355,7 +355,6 @@ describe('Collapsible fieldset', () => {
test("is added when the fieldset is expanded", () => {
expect(formGroup.querySelector('.selection-footer').classList.contains('js-stick-at-bottom-when-scrolling')).toBe(true);
expect(window.GOVUK.stickAtBottomWhenScrolling.recalculate.mock.calls.length).toBe(1);
});
@@ -365,7 +364,6 @@ describe('Collapsible fieldset', () => {
helpers.triggerEvent(formGroup.querySelector('.govuk-button'), 'click');
expect(formGroup.querySelector('.selection-footer').classList.contains('js-stick-at-bottom-when-scrolling')).toBe(false);
expect(window.GOVUK.stickAtBottomWhenScrolling.recalculate.mock.calls.length).toBe(2);
});