Fix pageAdmin setPrevioiusPageUsingActivePage writing to wrong property
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -29,12 +29,10 @@ describe('pageAdminStore', () => {
|
||||
expect(store.previousPage).toBe('PERFORMANCE');
|
||||
});
|
||||
|
||||
it('setPrevioiusPageUsingActivePage copies activePage', () => {
|
||||
it('setPrevioiusPageUsingActivePage copies activePage to previousPage', () => {
|
||||
store.setActivePage('CONFORMANCE');
|
||||
store.setPrevioiusPageUsingActivePage();
|
||||
// Note: bug in source - writes to this.previoiusPage (typo)
|
||||
// instead of this.previousPage, so previousPage stays 'MAP'
|
||||
expect(store.previousPage).toBe('MAP');
|
||||
expect(store.previousPage).toBe('CONFORMANCE');
|
||||
});
|
||||
|
||||
it('setIsPagePendingBoolean sets boolean', () => {
|
||||
|
||||
Reference in New Issue
Block a user