Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
crisnicandrei committed Oct 18, 2024
1 parent 745907f commit ae8e3b1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ describe('GlamPendingArchivesComponent', () => {

expect(outputs.nextOutput.emit).toHaveBeenCalledWith(selectedArchive);
});

it('should call api.archive.accept when selectArchive is called', async () => {
const { instance, inject } = await shallow.render();
const apiService = inject(ApiService);
Expand All @@ -84,6 +85,7 @@ describe('GlamPendingArchivesComponent', () => {
});

await instance.selectArchive(archive);

expect(apiService.archive.accept).toHaveBeenCalledWith(archive);
});

Expand All @@ -95,6 +97,7 @@ describe('GlamPendingArchivesComponent', () => {
});

await instance.selectArchive(archive);

expect(instance.acceptedArchives.length).toBe(1);
expect(instance.acceptedArchives[0].archiveId).toBe(1);
});
Expand All @@ -108,6 +111,7 @@ describe('GlamPendingArchivesComponent', () => {

expect(instance.selectedArchive).toBeNull();
await instance.selectArchive(archive);

expect(instance.selectedArchive.archiveId).toBe(archive.archiveId);
});

Expand All @@ -119,6 +123,7 @@ describe('GlamPendingArchivesComponent', () => {
});

await instance.selectArchive(archive);

expect(instance.isSelected(1)).toBeTrue();
});

Expand Down

0 comments on commit ae8e3b1

Please sign in to comment.