-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusersCollection.js
42 lines (38 loc) · 1.02 KB
/
usersCollection.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Exports a single instance of UsersCollection.
*
* This module defines classes for both individual and collections of users,
* extending the base Example and ExamplesCollection classes.
*
* @module usersCollection
*/
import User from './user';
import ExamplesCollection from '../../helpers/data/examplesCollection';
/**
* User data examples to be wrapped in an ExamplesCollection instance.
* @constant {Example[]}
*/
const USER_EXAMPLES = [
new User({
exampleName: '_test',
hasNationwideMortgage: false,
applicationType: User.FIRST_HOME,
propertyValue: 1,
mortgageAmount: 2,
termLengthYears: 3,
}),
new User({
exampleName: 'remortgaging',
hasNationwideMortgage: false,
applicationType: User.CHANGING_LENDER,
propertyValue: 300000,
mortgageAmount: 150000,
termLengthYears: 30,
}),
];
/**
* The exported UserCollection instance
* @constant {UsersCollection}
*/
const usersCollection = new ExamplesCollection('users', USER_EXAMPLES);
export default usersCollection;