test(system-service): fix failing test due to refactor
This commit is contained in:
parent
23a115b955
commit
da31470fd7
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ describe('Test: getVersion', () => {
|
|||
expect(version.body).toBeDefined();
|
||||
});
|
||||
|
||||
it('Should return undefined for latest if request fails', async () => {
|
||||
it('Should return current version for latest if request fails', async () => {
|
||||
server.use(
|
||||
rest.get('https://api.github.com/repos/meienberger/runtipi/releases/latest', (_, res, ctx) => {
|
||||
return res(ctx.status(500));
|
||||
|
@ -103,7 +103,7 @@ describe('Test: getVersion', () => {
|
|||
|
||||
expect(version).toBeDefined();
|
||||
expect(version.current).toBeDefined();
|
||||
expect(version.latest).toBeUndefined();
|
||||
expect(version.latest).toBe(version.current);
|
||||
});
|
||||
|
||||
it('Should return cached version', async () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue