AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 1 | /*! |
Einav Weiss Keidar | d2f5794 | 2018-02-14 14:00:07 +0200 | [diff] [blame] | 2 | * Copyright © 2016-2018 European Support Limited |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 3 | * |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 13 | * or implied. See the License for the specific language governing |
| 14 | * permissions and limitations under the License. |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 15 | */ |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 16 | import deepFreeze from 'deep-freeze'; |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 17 | import pickBy from 'lodash/pickBy'; |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 18 | import mockRest from 'test-utils/MockRest.js'; |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 19 | import { cloneAndSet, buildListFromFactory } from 'test-utils/Util.js'; |
| 20 | import { storeCreator } from 'sdc-app/AppStore.js'; |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 21 | import LicenseAgreementActionHelper from 'sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js'; |
| 22 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 23 | import { |
| 24 | LicenseAgreementStoreFactory, |
| 25 | LicenseAgreementDispatchFactory, |
| 26 | LicenseAgreementPostFactory, |
| 27 | LicenseAgreementPutFactory |
| 28 | } from 'test-utils/factories/licenseModel/LicenseAgreementFactories.js'; |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 29 | import VersionFactory from 'test-utils/factories/common/VersionFactory.js'; |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 30 | import { SyncStates } from 'sdc-app/common/merge/MergeEditorConstants.js'; |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 31 | import CurrentScreenFactory from 'test-utils/factories/common/CurrentScreenFactory.js'; |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 32 | |
| 33 | describe('License Agreement Module Tests', () => { |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 34 | const LICENSE_MODEL_ID = '777'; |
| 35 | const version = VersionFactory.build(); |
| 36 | const itemPermissionAndProps = CurrentScreenFactory.build({}, { version }); |
| 37 | const returnedVersionFields = { |
| 38 | baseId: version.baseId, |
| 39 | description: version.description, |
| 40 | id: version.id, |
| 41 | name: version.name, |
| 42 | status: version.status |
| 43 | }; |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 44 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 45 | it('Load License Agreement List', () => { |
| 46 | const licenseAgreementList = buildListFromFactory( |
| 47 | LicenseAgreementStoreFactory |
| 48 | ); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 49 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 50 | const store = storeCreator(); |
| 51 | deepFreeze(store.getState()); |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 52 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 53 | const expectedStore = cloneAndSet( |
| 54 | store.getState(), |
| 55 | 'licenseModel.licenseAgreement.licenseAgreementList', |
| 56 | licenseAgreementList |
| 57 | ); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 58 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 59 | mockRest.addHandler('fetch', ({ options, data, baseUrl }) => { |
| 60 | expect(baseUrl).toEqual( |
| 61 | `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${ |
| 62 | version.id |
| 63 | }/license-agreements` |
| 64 | ); |
| 65 | expect(data).toEqual(undefined); |
| 66 | expect(options).toEqual(undefined); |
| 67 | return { results: licenseAgreementList }; |
| 68 | }); |
| 69 | return LicenseAgreementActionHelper.fetchLicenseAgreementList( |
| 70 | store.dispatch, |
| 71 | { licenseModelId: LICENSE_MODEL_ID, version } |
| 72 | ).then(() => { |
| 73 | expect(store.getState()).toEqual(expectedStore); |
| 74 | }); |
| 75 | }); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 76 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 77 | it('Delete License Agreement', () => { |
| 78 | const licenseAgreementList = buildListFromFactory( |
| 79 | LicenseAgreementStoreFactory, |
| 80 | 1 |
| 81 | ); |
| 82 | const store = storeCreator({ |
| 83 | currentScreen: { ...itemPermissionAndProps }, |
| 84 | licenseModel: { |
| 85 | licenseAgreement: { |
| 86 | licenseAgreementList |
| 87 | } |
| 88 | } |
| 89 | }); |
| 90 | deepFreeze(store.getState()); |
| 91 | const expectedCurrentScreenProps = { |
| 92 | ...itemPermissionAndProps, |
| 93 | itemPermission: { |
| 94 | ...itemPermissionAndProps.itemPermission, |
| 95 | isDirty: true |
| 96 | } |
| 97 | }; |
| 98 | const toBeDeletedLicenseAgreementId = licenseAgreementList[0].id; |
| 99 | let expectedStore = cloneAndSet( |
| 100 | store.getState(), |
| 101 | 'licenseModel.licenseAgreement.licenseAgreementList', |
| 102 | [] |
| 103 | ); |
| 104 | expectedStore = cloneAndSet( |
| 105 | expectedStore, |
| 106 | 'currentScreen.itemPermission', |
| 107 | expectedCurrentScreenProps.itemPermission |
| 108 | ); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 109 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 110 | mockRest.addHandler('destroy', ({ data, options, baseUrl }) => { |
| 111 | expect(baseUrl).toEqual( |
| 112 | `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${ |
| 113 | version.id |
| 114 | }/license-agreements/${toBeDeletedLicenseAgreementId}` |
| 115 | ); |
| 116 | expect(data).toEqual(undefined); |
| 117 | expect(options).toEqual(undefined); |
| 118 | }); |
| 119 | mockRest.addHandler('fetch', ({ data, options, baseUrl }) => { |
| 120 | expect(baseUrl).toEqual( |
| 121 | `/onboarding-api/v1.0/items/${LICENSE_MODEL_ID}/versions/${ |
| 122 | version.id |
| 123 | }` |
| 124 | ); |
| 125 | expect(data).toEqual(undefined); |
| 126 | expect(options).toEqual(undefined); |
| 127 | return { |
| 128 | ...returnedVersionFields, |
| 129 | state: { |
| 130 | synchronizationState: SyncStates.UP_TO_DATE, |
| 131 | dirty: true |
| 132 | } |
| 133 | }; |
| 134 | }); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 135 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 136 | mockRest.addHandler('fetch', ({ data, options, baseUrl }) => { |
| 137 | expect(baseUrl).toEqual( |
| 138 | `/onboarding-api/v1.0/items/${LICENSE_MODEL_ID}` |
| 139 | ); |
| 140 | expect(data).toEqual(undefined); |
| 141 | expect(options).toEqual(undefined); |
| 142 | return { |
| 143 | ...returnedVersionFields |
| 144 | }; |
| 145 | }); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 146 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 147 | return LicenseAgreementActionHelper.deleteLicenseAgreement( |
| 148 | store.dispatch, |
| 149 | { |
| 150 | licenseAgreementId: toBeDeletedLicenseAgreementId, |
| 151 | licenseModelId: LICENSE_MODEL_ID, |
| 152 | version |
| 153 | } |
| 154 | ).then(() => { |
| 155 | expect(store.getState()).toEqual(expectedStore); |
| 156 | }); |
| 157 | }); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 158 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 159 | it('Add License Agreement', () => { |
| 160 | const store = storeCreator({ |
| 161 | currentScreen: { ...itemPermissionAndProps } |
| 162 | }); |
| 163 | deepFreeze(store.getState()); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 164 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 165 | const licenseAgreementToAdd = LicenseAgreementDispatchFactory.build(); |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 166 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 167 | const LicenseAgreementPostRequest = LicenseAgreementPostFactory.build( |
| 168 | pickBy( |
| 169 | licenseAgreementToAdd, |
| 170 | (val, key) => key !== 'featureGroupsIds' |
| 171 | ) |
| 172 | ); |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 173 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 174 | deepFreeze(LicenseAgreementPostRequest); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 175 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 176 | const licenseAgreementIdFromResponse = 'ADDED_ID'; |
| 177 | const licenseAgreementAfterAdd = LicenseAgreementStoreFactory.build({ |
| 178 | ...licenseAgreementToAdd, |
| 179 | id: licenseAgreementIdFromResponse |
| 180 | }); |
| 181 | deepFreeze(licenseAgreementAfterAdd); |
| 182 | const licenseAgreementList = [licenseAgreementAfterAdd]; |
| 183 | const expectedCurrentScreenProps = { |
| 184 | ...itemPermissionAndProps, |
| 185 | itemPermission: { |
| 186 | ...itemPermissionAndProps.itemPermission, |
| 187 | isDirty: true |
| 188 | } |
| 189 | }; |
| 190 | const featureGroupsList = licenseAgreementList[0].featureGroupsIds; |
| 191 | let expectedStore = cloneAndSet( |
| 192 | store.getState(), |
| 193 | 'licenseModel.licenseAgreement.licenseAgreementList', |
| 194 | [licenseAgreementAfterAdd] |
| 195 | ); |
| 196 | expectedStore = cloneAndSet( |
| 197 | expectedStore, |
| 198 | 'currentScreen.itemPermission', |
| 199 | expectedCurrentScreenProps.itemPermission |
| 200 | ); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 201 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 202 | mockRest.addHandler('post', ({ options, data, baseUrl }) => { |
| 203 | expect(baseUrl).toEqual( |
| 204 | `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${ |
| 205 | version.id |
| 206 | }/license-agreements` |
| 207 | ); |
| 208 | expect(data).toEqual(LicenseAgreementPostRequest); |
| 209 | expect(options).toEqual(undefined); |
| 210 | return { |
| 211 | value: licenseAgreementIdFromResponse |
| 212 | }; |
| 213 | }); |
| 214 | mockRest.addHandler('fetch', ({ options, data, baseUrl }) => { |
| 215 | expect(baseUrl).toEqual( |
| 216 | `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${ |
| 217 | version.id |
| 218 | }/license-agreements` |
| 219 | ); |
| 220 | expect(data).toEqual(undefined); |
| 221 | expect(options).toEqual(undefined); |
| 222 | return { results: licenseAgreementList }; |
| 223 | }); |
| 224 | mockRest.addHandler('fetch', ({ options, data, baseUrl }) => { |
| 225 | expect(baseUrl).toEqual( |
| 226 | `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${ |
| 227 | version.id |
| 228 | }/feature-groups` |
| 229 | ); |
| 230 | expect(data).toEqual(undefined); |
| 231 | expect(options).toEqual(undefined); |
| 232 | return { results: featureGroupsList }; |
| 233 | }); |
| 234 | mockRest.addHandler('fetch', ({ data, options, baseUrl }) => { |
| 235 | expect(baseUrl).toEqual( |
| 236 | `/onboarding-api/v1.0/items/${LICENSE_MODEL_ID}/versions/${ |
| 237 | version.id |
| 238 | }` |
| 239 | ); |
| 240 | expect(data).toEqual(undefined); |
| 241 | expect(options).toEqual(undefined); |
| 242 | return { |
| 243 | ...returnedVersionFields, |
| 244 | state: { |
| 245 | synchronizationState: SyncStates.UP_TO_DATE, |
| 246 | dirty: true |
| 247 | } |
| 248 | }; |
| 249 | }); |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 250 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 251 | mockRest.addHandler('fetch', ({ data, options, baseUrl }) => { |
| 252 | expect(baseUrl).toEqual( |
| 253 | `/onboarding-api/v1.0/items/${LICENSE_MODEL_ID}` |
| 254 | ); |
| 255 | expect(data).toEqual(undefined); |
| 256 | expect(options).toEqual(undefined); |
| 257 | return { |
| 258 | ...returnedVersionFields |
| 259 | }; |
| 260 | }); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 261 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 262 | return LicenseAgreementActionHelper.saveLicenseAgreement( |
| 263 | store.dispatch, |
| 264 | { |
| 265 | licenseAgreement: licenseAgreementToAdd, |
| 266 | licenseModelId: LICENSE_MODEL_ID, |
| 267 | version |
| 268 | } |
| 269 | ).then(() => { |
| 270 | expect(store.getState()).toEqual(expectedStore); |
| 271 | }); |
| 272 | }); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 273 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 274 | it('Update License Agreement', () => { |
| 275 | const licenseAgreementList = buildListFromFactory( |
| 276 | LicenseAgreementStoreFactory, |
| 277 | 1, |
| 278 | { featureGroupsIds: ['77'] } |
| 279 | ); |
| 280 | const store = storeCreator({ |
| 281 | currentScreen: { ...itemPermissionAndProps }, |
| 282 | licenseModel: { |
| 283 | licenseAgreement: { |
| 284 | licenseAgreementList |
| 285 | } |
| 286 | } |
| 287 | }); |
| 288 | deepFreeze(store.getState()); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 289 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 290 | const previousLicenseAgreementData = licenseAgreementList[0]; |
| 291 | const toBeUpdatedLicenseAgreementId = previousLicenseAgreementData.id; |
| 292 | const oldFeatureGroupIds = |
| 293 | previousLicenseAgreementData.featureGroupsIds; |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 294 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 295 | const newFeatureGroupsIds = ['update_id_1', 'update_id_2']; |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 296 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 297 | const licenseAgreementUpdateData = LicenseAgreementStoreFactory.build({ |
| 298 | id: toBeUpdatedLicenseAgreementId, |
| 299 | featureGroupsIds: newFeatureGroupsIds |
| 300 | }); |
| 301 | deepFreeze(licenseAgreementUpdateData); |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 302 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 303 | const LicenseAgreementPutFactoryRequest = LicenseAgreementPutFactory.build( |
| 304 | { |
| 305 | addedFeatureGroupsIds: newFeatureGroupsIds, |
| 306 | removedFeatureGroupsIds: oldFeatureGroupIds |
| 307 | } |
| 308 | ); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 309 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 310 | deepFreeze(LicenseAgreementPutFactoryRequest); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 311 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 312 | const expectedCurrentScreenProps = { |
| 313 | ...itemPermissionAndProps, |
| 314 | itemPermission: { |
| 315 | ...itemPermissionAndProps.itemPermission, |
| 316 | isDirty: true |
| 317 | } |
| 318 | }; |
| 319 | let expectedStore = cloneAndSet( |
| 320 | store.getState(), |
| 321 | 'licenseModel.licenseAgreement.licenseAgreementList', |
| 322 | [licenseAgreementUpdateData] |
| 323 | ); |
| 324 | expectedStore = cloneAndSet( |
| 325 | expectedStore, |
| 326 | 'currentScreen.itemPermission', |
| 327 | expectedCurrentScreenProps.itemPermission |
| 328 | ); |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 329 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 330 | mockRest.addHandler('put', ({ data, options, baseUrl }) => { |
| 331 | expect(baseUrl).toEqual( |
| 332 | `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${ |
| 333 | version.id |
| 334 | }/license-agreements/${toBeUpdatedLicenseAgreementId}` |
| 335 | ); |
| 336 | expect(data).toEqual(LicenseAgreementPutFactoryRequest); |
| 337 | expect(options).toEqual(undefined); |
| 338 | }); |
| 339 | mockRest.addHandler('fetch', ({ options, data, baseUrl }) => { |
| 340 | expect(baseUrl).toEqual( |
| 341 | `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${ |
| 342 | version.id |
| 343 | }/license-agreements` |
| 344 | ); |
| 345 | expect(data).toEqual(undefined); |
| 346 | expect(options).toEqual(undefined); |
| 347 | return { results: [licenseAgreementUpdateData] }; |
| 348 | }); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 349 | |
svishnev | 57c5c4a | 2018-04-22 14:14:31 +0300 | [diff] [blame] | 350 | mockRest.addHandler('fetch', ({ options, data, baseUrl }) => { |
| 351 | expect(baseUrl).toEqual( |
| 352 | `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${ |
| 353 | version.id |
| 354 | }/feature-groups` |
| 355 | ); |
| 356 | expect(data).toEqual(undefined); |
| 357 | expect(options).toEqual(undefined); |
| 358 | return { results: [] }; |
| 359 | }); |
| 360 | |
| 361 | mockRest.addHandler('fetch', ({ data, options, baseUrl }) => { |
| 362 | expect(baseUrl).toEqual( |
| 363 | `/onboarding-api/v1.0/items/${LICENSE_MODEL_ID}/versions/${ |
| 364 | version.id |
| 365 | }` |
| 366 | ); |
| 367 | expect(data).toEqual(undefined); |
| 368 | expect(options).toEqual(undefined); |
| 369 | return { |
| 370 | ...returnedVersionFields, |
| 371 | state: { |
| 372 | synchronizationState: SyncStates.UP_TO_DATE, |
| 373 | dirty: true |
| 374 | } |
| 375 | }; |
| 376 | }); |
| 377 | |
| 378 | mockRest.addHandler('fetch', ({ data, options, baseUrl }) => { |
| 379 | expect(baseUrl).toEqual( |
| 380 | `/onboarding-api/v1.0/items/${LICENSE_MODEL_ID}` |
| 381 | ); |
| 382 | expect(data).toEqual(undefined); |
| 383 | expect(options).toEqual(undefined); |
| 384 | return { |
| 385 | ...returnedVersionFields |
| 386 | }; |
| 387 | }); |
| 388 | |
| 389 | return LicenseAgreementActionHelper.saveLicenseAgreement( |
| 390 | store.dispatch, |
| 391 | { |
| 392 | licenseModelId: LICENSE_MODEL_ID, |
| 393 | version, |
| 394 | previousLicenseAgreement: previousLicenseAgreementData, |
| 395 | licenseAgreement: licenseAgreementUpdateData |
| 396 | } |
| 397 | ).then(() => { |
| 398 | expect(store.getState()).toEqual(expectedStore); |
| 399 | }); |
| 400 | }); |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 401 | }); |