Skip to content

Commit

Permalink
fix: tests with fixed disable auto update to major
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Jan 9, 2025
1 parent 2aa5cb5 commit c763b8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/updates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ describe('[POST] /updates parallel tests', () => {

it('disable auto update to major', async () => {
const baseData = getBaseData(APPNAME)
baseData.version_build = '0.0.0'
baseData.version_name = '0.0.0'

const response = await postUpdate(baseData)
expect(response.status).toBe(200)
const json = await response.json<UpdateRes>()
console.log('json', json)
expect(json.error).toBe('disable_auto_update_to_major')
})

Expand Down

0 comments on commit c763b8a

Please sign in to comment.