Skip to content

Commit 5aa204a

Browse files
committed
fix(addons): fixed unit tests
1 parent 1dbfba8 commit 5aa204a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/shared/stores/addons/addons.state.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('State: Addons', () => {
3535
it('should fetch storage addons and update state and selector output', inject(
3636
[HttpTestingController],
3737
(httpMock: HttpTestingController) => {
38-
let result: any[] = [];
38+
let result: any[] | null = [];
3939
store.dispatch(new GetStorageAddons()).subscribe(() => {
4040
result = store.selectSnapshot(AddonsSelectors.getStorageAddons);
4141
});
@@ -106,7 +106,7 @@ describe('State: Addons', () => {
106106
req.flush({ message: 'Internal Server Error' }, { status: 500, statusText: 'Server Error' });
107107

108108
expect(result).toEqual({
109-
data: [],
109+
data: null,
110110
error: 'Http failure response for http://addons.localhost:8000/external-storage-services: 500 Server Error',
111111
isLoading: false,
112112
isSubmitting: false,

0 commit comments

Comments
 (0)