[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
peminjaman
/
public
/
extensions
/
choices.js
/
src
/
scripts
/
reducers
/
[
Home
]
File: loading.test.ts
import { expect } from 'chai'; import general, { defaultState } from './loading'; describe('reducers/loading', () => { it('should return same state when no action matches', () => { expect(general(defaultState, {} as any)).to.equal(defaultState); }); describe('SET_IS_LOADING', () => { it('sets loading state', () => { const expectedState = true; const actualState = general(undefined, { type: 'SET_IS_LOADING', isLoading: true, }); expect(expectedState).to.eql(actualState); }); }); });