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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user