Fix typos: updataFilter, updataConformance, setPrevioiusPage, reallyDeldet, tooken, pageAdimin
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -173,20 +173,20 @@ describe('allMapDataStore', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('updataFilter', () => {
|
||||
describe('updateFilter', () => {
|
||||
it('updates filter and clears temp id', async () => {
|
||||
store.createFilterId = 88;
|
||||
store.tempFilterId = 77;
|
||||
store.postRuleData = [{ type: 'updated' }];
|
||||
mockAxios.put.mockResolvedValue({ status: 200 });
|
||||
|
||||
await store.updataFilter();
|
||||
await store.updateFilter();
|
||||
|
||||
expect(mockAxios.put).toHaveBeenCalledWith(
|
||||
'/api/filters/88',
|
||||
[{ type: 'updated' }],
|
||||
);
|
||||
expect(store.isUpdataFilter).toBe(true);
|
||||
expect(store.isUpdateFilter).toBe(true);
|
||||
expect(store.tempFilterId).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -147,19 +147,19 @@ describe('conformanceStore', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('updataConformance', () => {
|
||||
describe('updateConformance', () => {
|
||||
it('updates existing log check', async () => {
|
||||
store.conformanceLogCreateCheckId = 50;
|
||||
store.conformanceRuleData = { type: 'updated' };
|
||||
mockAxios.put.mockResolvedValue({ status: 200 });
|
||||
|
||||
await store.updataConformance();
|
||||
await store.updateConformance();
|
||||
|
||||
expect(mockAxios.put).toHaveBeenCalledWith(
|
||||
'/api/log-checks/50',
|
||||
{ type: 'updated' },
|
||||
);
|
||||
expect(store.isUpdataConformance).toBe(true);
|
||||
expect(store.isUpdateConformance).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -24,14 +24,14 @@ describe('pageAdminStore', () => {
|
||||
expect(store.activePage).toBe('CONFORMANCE');
|
||||
});
|
||||
|
||||
it('setPrevioiusPage converts page name', () => {
|
||||
store.setPrevioiusPage('CheckPerformance');
|
||||
it('setPreviousPage converts page name', () => {
|
||||
store.setPreviousPage('CheckPerformance');
|
||||
expect(store.previousPage).toBe('PERFORMANCE');
|
||||
});
|
||||
|
||||
it('setPrevioiusPageUsingActivePage copies activePage to previousPage', () => {
|
||||
it('setPreviousPageUsingActivePage copies activePage to previousPage', () => {
|
||||
store.setActivePage('CONFORMANCE');
|
||||
store.setPrevioiusPageUsingActivePage();
|
||||
store.setPreviousPageUsingActivePage();
|
||||
expect(store.previousPage).toBe('CONFORMANCE');
|
||||
});
|
||||
|
||||
@@ -58,7 +58,7 @@ describe('pageAdminStore', () => {
|
||||
});
|
||||
|
||||
it('keepPreviousPage restores previous page', () => {
|
||||
store.setPrevioiusPage('CONFORMANCE');
|
||||
store.setPreviousPage('CONFORMANCE');
|
||||
store.setActivePage('PERFORMANCE');
|
||||
store.keepPreviousPage();
|
||||
expect(store.activePage).toBe('CONFORMANCE');
|
||||
|
||||
Reference in New Issue
Block a user