UNPKG

instantjob-recruiter-client

Version:

a set of tools for creating an instantjob recruiter react client

18 lines (14 loc) 521 B
import {get_users} from 'selectors/users' import state from './state.js' import {array_from_hash, for_all} from 'common/utilities' import expect from 'expect' const {describe, it} = global describe('get_users', () => { let users = get_users(state) it('should keep the number of users', () => { expect(array_from_hash(users).length).toEqual(array_from_hash(state.users.users).length) }) it('should keep ids', () => { expect(for_all(Object.keys(users), (id) => users[id].id === id)).toBeTruthy() }) })