Tim Glasgow
2 years ago
40 changed files with 39 additions and 22 deletions
@ -0,0 +1,3 @@ |
|||||
|
export async function initDB() { |
||||
|
return null; |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
import 'react-native'; |
||||
|
import React from 'react'; |
||||
|
import initStore from '../src/redux/CreateStore'; |
||||
|
import appInit from '../src/redux/actions/SystemActions'; |
||||
|
import { APP_INIT } from '../src/edux/types/SystemTypes'; |
||||
|
|
||||
|
const flushPromises = () => new Promise(setImmediate); |
||||
|
|
||||
|
test('starts redux store', () => { |
||||
|
const reduxStore = initStore(); |
||||
|
reduxStore.dispatch(appInit()) |
||||
|
.then(() => { |
||||
|
const actualActions = reduxStore.getActions().map(action = action.type); |
||||
|
expect(actualActions).to.eql(APP_INIT); |
||||
|
}); |
||||
|
}); |
Loading…
Reference in new issue