test: correct broken test

This commit is contained in:
Nicolas Meienberger 2022-11-18 12:58:07 +01:00
parent e04bdc52d6
commit 844a983048

View file

@ -430,12 +430,11 @@ describe('getUpdateInfo', () => {
expect(updateInfo).toBeNull();
});
it('should return version 0 if version is not provided', async () => {
it('should return null if version is not provided', async () => {
// @ts-ignore
const updateInfo = await getUpdateInfo(app1.id);
expect(updateInfo?.latest).toBe(app1.tipi_version);
expect(updateInfo?.current).toBe(0);
expect(updateInfo).toBe(null);
});
});