Fix fileless-importer test

This commit is contained in:
Daniel James Smith 2024-05-03 08:47:11 +02:00
parent b7dec44197
commit bc7f072704
No known key found for this signature in database
GPG Key ID: DA2E2EC600E1289B
1 changed files with 4 additions and 1 deletions

View File

@ -281,7 +281,10 @@ describe("FilelessImporterBackground ", () => {
expect(
filelessImporterBackground["importNotificationsPort"].postMessage,
).toHaveBeenCalledWith({ command: "filelessImportCompleted" });
expect(filelessImporterBackground["syncService"].fullSync).toHaveBeenCalledWith(true);
expect(filelessImporterBackground["syncService"].fullSync).toHaveBeenCalledWith(
true,
"import",
);
});
it("posts a failed message if the import fails", async () => {