+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git checkout 9dc9380527d54dcc2e0679c8f092ec9d55037f29 client/extensions/woocommerce/state/sites/settings/email/test/actions.js client/extensions/woocommerce/state/sites/settings/email/test/reducer.js
Updated 0 paths from 87ed4c82c
+ git apply --verbose --reject -
Checking patch client/extensions/woocommerce/state/sites/settings/email/test/actions.js...
Checking patch client/extensions/woocommerce/state/sites/settings/email/test/reducer.js...
Applied patch client/extensions/woocommerce/state/sites/settings/email/test/actions.js cleanly.
Applied patch client/extensions/woocommerce/state/sites/settings/email/test/reducer.js cleanly.
+ : '>>>>> Start Test Output'
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/extensions/woocommerce/state/sites/settings/email/test/actions.js
FAIL client/extensions/woocommerce/state/sites/settings/email/test/actions.js
  actions
    #fetchEmailSettings()
      ✓ should dispatch an request action (23ms)
      ✓ should dispatch a success action with settings information when request completes (14ms)
      ✓ should not dispatch if settings are already loading for this site
      ✓ should not dispatch if settings are already fetched for this site (1ms)
    #emailSettingChange()
      ✓ should dispatch a action with changed setting
    #emailSettingsSaveSettings()
      ✓ should dispatch a action that will trigger saving settings (1ms)
    #emailSettingsSubmitSettings()
      ✓ should dispatch an request action (2ms)
      ✕ should dispatch an success action (3ms)
    #emailSettingsInvalidValue()
      ✓ should dispatch a action that will inform that settings are not valid (1ms)

  ● actions › #emailSettingsSubmitSettings() › should dispatch an success action

    AssertionError: expected spy to have been called with arguments {
      siteId: "123",
      type: "WOOCOMMERCE_EMAIL_SETTINGS_SUBMIT_SUCCESS",
      update: {
        update: [{ group_id: "email", id: "woocommerce_email_from_name", value: "frtd" }, { group_id: "email", id: "woocommerce_email_from_address", value: "test@test.com" }]
      }
    }
        spy({ siteId: "123", type: "WOOCOMMERCE_EMAIL_SETTINGS_SUBMIT" }) at /testbed/client/extensions/woocommerce/state/sites/settings/email/actions.js:104:2
        spy({
      settings: {
        update: [{ group_id: "email", id: "woocommerce_email_from_name", value: "frtd" }, { group_id: "email", id: "woocommerce_email_from_address", value: "test@test.com" }]
      },
      siteId: "123",
      type: "WOOCOMMERCE_EMAIL_SETTINGS_SUBMIT_SUCCESS"
    }) at /testbed/client/extensions/woocommerce/state/sites/settings/email/actions.js:124:4

      251 | 			const dispatch = spy();
      252 | 			return emailSettingsSubmitSettings( siteId, settings )( dispatch ).then( () => {
    > 253 | 				expect( dispatch ).to.have.been.calledWith( {
      254 | 					type: WOOCOMMERCE_EMAIL_SETTINGS_SUBMIT_SUCCESS,
      255 | 					siteId,
      256 | 					update: data,
      
      at client/extensions/woocommerce/state/sites/settings/email/test/actions.js:253:37

Test Suites: 1 failed, 1 total
Tests:       1 failed, 8 passed, 9 total
Snapshots:   0 total
Time:        4.648s
Ran all test suites matching /client\/extensions\/woocommerce\/state\/sites\/settings\/email\/test\/actions.js/i.
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/extensions/woocommerce/state/sites/settings/email/test/reducer.js
FAIL client/extensions/woocommerce/state/sites/settings/email/test/reducer.js
  reducer
    ✓ should mark the email settings tree as "loading" (3ms)
    ✓ should store data from the action (2ms)
    ✕ should not use default value for settings with no value or default if option is disabled (14ms)
    ✕ should use default value for settings with no value or default if option is enabled (1ms)
    ✓ should decode entities in woocommerce_email_from_name (1ms)
    ✓ should use default value from setting for settings with default and no value. (1ms)
    ✓ should update setting with new value. (1ms)

  ● reducer › should not use default value for settings with no value or default if option is disabled

    AssertionError: expected { Object (email, email_new_order) } to deeply equal { Object (email, email_new_order) }

      134 | 		expect( newState[ siteId ] ).to.exist;
      135 | 		expect( newState[ siteId ].settings ).to.exist;
    > 136 | 		expect( newState[ siteId ].settings.email ).to.deep.equal( expectedResult );
      137 | 	} );
      138 |
      139 | 	test( 'should use default value for settings with no value or default if option is enabled', () => {
      
      at Assertion.assertEqual (node_modules/chai/lib/chai/core/assertions.js:485:19)
      at Assertion.equal (node_modules/chai/lib/chai/utils/addMethod.js:41:25)
      at Object.<anonymous> (client/extensions/woocommerce/state/sites/settings/email/test/reducer.js:136:55)

  ● reducer › should use default value for settings with no value or default if option is enabled

    AssertionError: expected { Object (email, email_new_order) } to deeply equal { Object (email, email_new_order) }

      188 | 		expect( newState[ siteId ] ).to.exist;
      189 | 		expect( newState[ siteId ].settings ).to.exist;
    > 190 | 		expect( newState[ siteId ].settings.email ).to.deep.equal( expectedResult );
      191 | 	} );
      192 |
      193 | 	test( 'should decode entities in woocommerce_email_from_name', () => {
      
      at Assertion.assertEqual (node_modules/chai/lib/chai/core/assertions.js:485:19)
      at Assertion.equal (node_modules/chai/lib/chai/utils/addMethod.js:41:25)
      at Object.<anonymous> (client/extensions/woocommerce/state/sites/settings/email/test/reducer.js:190:55)

Test Suites: 1 failed, 1 total
Tests:       2 failed, 5 passed, 7 total
Snapshots:   0 total
Time:        3.618s
Ran all test suites matching /client\/extensions\/woocommerce\/state\/sites\/settings\/email\/test\/reducer.js/i.
+ : '>>>>> End Test Output'
+ git checkout 9dc9380527d54dcc2e0679c8f092ec9d55037f29 client/extensions/woocommerce/state/sites/settings/email/test/actions.js client/extensions/woocommerce/state/sites/settings/email/test/reducer.js
Updated 2 paths from 87ed4c82c
