equal
deleted
inserted
replaced
6 getClientId, |
6 getClientId, |
7 getCurrentGroupName, |
7 getCurrentGroupName, |
8 getCreateGroup, |
8 getCreateGroup, |
9 getAutoSubmit, |
9 getAutoSubmit, |
10 getGroups, |
10 getGroups, |
11 getCurrentGroup |
11 getCurrentGroup, |
|
12 getLoginErrorMessages |
12 } from '../authSelectors'; |
13 } from '../authSelectors'; |
13 |
14 |
14 import asyncRequest from '../../constants/asyncRequest'; |
15 import asyncRequest from '../../constants/asyncRequest'; |
15 |
16 |
16 |
17 |
238 |
239 |
239 expect(getCurrentGroup(inputState)).toEqual({ name: 'group2'}); |
240 expect(getCurrentGroup(inputState)).toEqual({ name: 'group2'}); |
240 }) |
241 }) |
241 |
242 |
242 |
243 |
243 test('getCurrentGroupUndefined', () => { |
244 test('getCurrentGroupUndefined', () => { |
244 const inputState = { |
245 const inputState = { |
245 status: { |
246 status: { |
246 isSynchronizing: false, |
247 isSynchronizing: false, |
247 online: false |
248 online: false |
248 }, |
249 }, |
261 }; |
262 }; |
262 |
263 |
263 expect(getCurrentGroup(inputState)).toEqual(undefined); |
264 expect(getCurrentGroup(inputState)).toEqual(undefined); |
264 }) |
265 }) |
265 |
266 |
|
267 test('getLoginErrorMessages', () => { |
|
268 const inputState = { |
|
269 login: { |
|
270 loading: false, |
|
271 success: false, |
|
272 error: false, |
|
273 errorMessages: {} |
|
274 } |
|
275 } |
|
276 |
|
277 expect(getLoginErrorMessages(inputState)).toEqual({}); |
|
278 }) |
|
279 |
|
280 test('getLoginErrorMessagesUndefined', () => { |
|
281 const inputState = { |
|
282 } |
|
283 |
|
284 expect(getLoginErrorMessages(inputState)).toEqual(undefined); |
|
285 }) |
|
286 |
|
287 test('getLoginErrorMessagesUndefinedPath', () => { |
|
288 const inputState = { |
|
289 login: { |
|
290 } |
|
291 } |
|
292 expect(getLoginErrorMessages(inputState)).toEqual(undefined); |
|
293 }) |
|
294 |
266 |
295 |
267 }) |
296 }) |