Skip to content

Commit cbc0c3f

Browse files
PreshyCopilot
andauthored
Update apps/extension/__tests__/toolbar-delete-revert.test.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 53bbd7d commit cbc0c3f

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

apps/extension/__tests__/toolbar-delete-revert.test.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -827,34 +827,6 @@ describe('Bug: Delete toolbar bookmark → auto-sync reverts it', () => {
827827
});
828828

829829
describe('Full end-to-end sync simulation with mock browser APIs', () => {
830-
let storage;
831-
let bookmarkTree;
832-
let nextId;
833-
834-
/**
835-
* Simulates browser.storage.local
836-
*/
837-
function createMockStorage() {
838-
const data = {};
839-
return {
840-
get: async (keys) => {
841-
if (typeof keys === 'string') return { [keys]: data[keys] };
842-
if (Array.isArray(keys)) {
843-
const result = {};
844-
for (const k of keys) {
845-
if (k in data) result[k] = data[k];
846-
}
847-
return result;
848-
}
849-
return { ...data };
850-
},
851-
set: async (items) => {
852-
Object.assign(data, items);
853-
},
854-
_data: data,
855-
};
856-
}
857-
858830
/**
859831
* Simulates the entire performSync flow with mock state.
860832
* Returns the final state after sync.

0 commit comments

Comments
 (0)