instantjob-recruiter-client
Version:
a set of tools for creating an instantjob recruiter react client
28 lines (25 loc) • 680 B
JSX
import {get_user_assigned_mission_ids, get_user_workplaces_count} from 'selectors/user_missions'
import state from './state.js'
import expect from 'expect'
describe("get_user_assigned_mission_ids", () => {
it("should compute", () => {
const user_assigned_mission_ids = get_user_assigned_mission_ids(state)
expect(user_assigned_mission_ids).toMatch({
1: [3],
2: [],
3: [],
})
})
})
describe("get_user_workplaces_count", () => {
it("should compute", () => {
const user_workplaces_count = get_user_workplaces_count(state)
expect(user_workplaces_count).toMatch({
1: {
1: 1,
},
2: {},
3: {},
})
})
})