()
| 8 | |
| 9 | export class CloudContext { |
| 10 | constructor() { |
| 11 | this.response = null; |
| 12 | this.prevResponse = null; |
| 13 | this.activity = null; |
| 14 | this.failed = false; |
| 15 | this.runningTest = false; |
| 16 | this.cheeseBurger = null; |
| 17 | this.cheeseBurgerData = { |
| 18 | name: 'cheese burger', |
| 19 | toppings: ['cheese'], |
| 20 | }; |
| 21 | this.clientOptions = { |
| 22 | group: 'testCycle', |
| 23 | }; |
| 24 | |
| 25 | this.serverSideClient = connect(config.API_KEY, config.API_SECRET, config.APP_ID, this.clientOptions); |
| 26 | |
| 27 | // apiKey, apiSecret, appId, options |
| 28 | this.alice = this.createUserClient('alice'); |
| 29 | this.bob = this.createUserClient('bob'); |
| 30 | this.carl = this.createUserClient('carl'); |
| 31 | this.dave = this.createUserClient('dave'); |
| 32 | |
| 33 | this.userData = { |
| 34 | alice: { |
| 35 | name: 'Alice Abbot', |
| 36 | likes: ['apples', 'ajax'], |
| 37 | }, |
| 38 | bob: { |
| 39 | name: 'Bob Baker', |
| 40 | likes: ['berries'], |
| 41 | }, |
| 42 | carl: { |
| 43 | name: 'Carl Church', |
| 44 | likes: ['cherries', 'curry'], |
| 45 | }, |
| 46 | dave: { |
| 47 | name: 'Dave Dawson', |
| 48 | likes: ['dark chocolate'], |
| 49 | }, |
| 50 | root: { |
| 51 | name: 'The ultimate user', |
| 52 | likes: ['power'], |
| 53 | }, |
| 54 | }; |
| 55 | |
| 56 | const reactionFields = [ |
| 57 | 'id', |
| 58 | 'kind', |
| 59 | 'activity_id', |
| 60 | 'user_id', |
| 61 | 'user', |
| 62 | 'data', |
| 63 | 'created_at', |
| 64 | 'updated_at', |
| 65 | 'parent', |
| 66 | 'latest_children', |
| 67 | 'children_counts', |
nothing calls this directly
no test coverage detected