Skip to content

Commit

Permalink
ADM-662 [frontend] use VERSION from fixtrues (#831)
Browse files Browse the repository at this point in the history
lxuebing authored Dec 19, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
2 parents ff4ba15 + 5756bf4 commit dfaf0c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/__tests__/src/context/headerSlice.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import headerReducer, { saveVersion } from '@src/context/header/headerSlice'
import { VERSION_RESPONSE } from '../fixtures'

describe('header reducer', () => {
it('should get empty when handle initial state', () => {
@@ -8,8 +9,8 @@ describe('header reducer', () => {
})

it('should set 1.11 when handle saveVersion', () => {
const header = headerReducer(undefined, saveVersion('1.11'))
const header = headerReducer(undefined, saveVersion(VERSION_RESPONSE.version))

expect(header.version).toEqual('1.11')
expect(header.version).toEqual(VERSION_RESPONSE.version)
})
})

0 comments on commit dfaf0c1

Please sign in to comment.