+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git checkout 6c46667b4d171af667fa6fc0990c0cf35e954ae3 client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/actions.js client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/reducer.js client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/selectors.js
Updated 0 paths from cb7b6cb22
+ git apply --verbose --reject -
Checking patch client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/actions.js...
Checking patch client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/reducer.js...
Checking patch client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/selectors.js...
Applied patch client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/actions.js cleanly.
Applied patch client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/reducer.js cleanly.
Applied patch client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/selectors.js cleanly.
+ : '>>>>> Start Test Output'
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/actions.js
FAIL client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/actions.js (5.679s)
  actions
    #clearCompletedNotification()
      ✕ should dispatch an action (16ms)
    #clearError()
      ✓ should dispatch an action (12ms)
    #createAccount()
      ✓ should dispatch an action (7ms)
      ✓ should dispatch a success action with account details when the request completes (17ms)
    #fetchAccountDetails()
      ✓ should dispatch an action (3ms)
      ✓ should dispatch a success action with account details when the request completes (2ms)
    #deauthorizeAccount()
      ✓ should dispatch an action (1ms)
      ✓ should dispatch a success action when the request completes (1ms)
    #oauthInit()
      ✓ should dispatch an action (1ms)
      ✓ should dispatch a success action with a Stripe URL when the request completes (1ms)
    #oauthConnect()
      ✓ should dispatch an action
      ✓ should dispatch a success action with a Stripe account when the request completes (3ms)

  ● actions › #clearCompletedNotification() › should dispatch an action

    TypeError: (0 , _actions.clearCompletedNotification) is not a function

      42 | 			const getState = () => ( {} );
      43 | 			const dispatch = spy();
    > 44 | 			clearCompletedNotification( siteId )( dispatch, getState );
      45 | 			expect( dispatch ).to.have.been.calledWith( {
      46 | 				type: WOOCOMMERCE_SETTINGS_STRIPE_CONNECT_ACCOUNT_CLEAR_COMPLETED_NOTIFICATION,
      47 | 				siteId,
      
      at Object.<anonymous> (client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/actions.js:44:4)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 11 passed, 12 total
Snapshots:   0 total
Time:        5.901s
Ran all test suites matching /client\/extensions\/woocommerce\/state\/sites\/settings\/stripe-connect-account\/test\/actions.js/i.
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/reducer.js
FAIL client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/reducer.js (6.987s)
  reducer
    default stripeConnectAccount reducer behavior
      ✓ should have no change by default (2ms)
    clearCompletedNotification
      ✕ should reset flag in state (43ms)
    clearError
      ✓ should reset error in state
    connectAccountCreate
      ✓ should update state to show request in progress
      ✓ should only update the request in progress flag for the appropriate siteId (2ms)
    connectAccountCreateComplete
      ✕ should update state with the received account details (2ms)
      ✓ should leave other sites state unchanged
    connectAccountCreateError
      ✓ should reset the isCreating flag in state and store the email and error
      ✓ should leave other sites state unchanged (1ms)
    connectAccountFetch
      ✓ should update state to show request in progress
      ✓ should only update the request in progress flag for the appropriate siteId
    connectAccountFetchComplete
      ✓ should update state with the received account details (1ms)
      ✓ should leave other sites state unchanged
    connectAccountFetchError
      ✓ should reset the isRequesting flag in state
      ✓ should leave other sites state unchanged (1ms)
    connectAccountDeauthorize
      ✓ should update state to show request in progress
      ✓ should only update the request in progress flag for the appropriate siteId
    connectAccountDeauthorizeComplete Success
      ✓ should update state
      ✓ should leave other sites state unchanged (1ms)
    connectAccountDeauthorizeComplete w/ Error
      ✓ should set the error in state
      ✓ should leave other sites state unchanged
    connectAccountOAuthInit
      ✓ should update state to show request in progress
      ✓ should only update the request in progress flag for the appropriate siteId (1ms)
    connectAccountOAuthInitComplete Success
      ✓ should update state
      ✓ should leave other sites state unchanged
    connectAccountOAuthInitComplete w/ Error
      ✓ should set the error in state
      ✓ should leave other sites state unchanged (1ms)
    connectAccountOAuthConnect
      ✓ should update state to show request in progress
      ✓ should only update the request in progress flag for the appropriate siteId
    connectAccountOAuthConnectComplete Success
      ✕ should update state (1ms)
      ✓ should leave other sites state unchanged
    connectAccountOAuthConnectComplete w/ Error
      ✓ should set the error in state
      ✓ should leave other sites state unchanged (1ms)

  ● reducer › clearCompletedNotification › should reset flag in state

    TypeError: Reducer called with undefined type. Verify that the action type is defined in state/action-types.js

      273 |
      274 | 		if ( 'production' !== process.env.NODE_ENV && 'type' in action && ! type ) {
    > 275 | 			throw new TypeError(
      276 | 				'Reducer called with undefined type.' +
      277 | 					' Verify that the action type is defined in state/action-types.js'
      278 | 			);
      
      at reducer (client/state/utils.js:275:10)
      at Object.<anonymous> (client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/reducer.js:42:21)

  ● reducer › connectAccountCreateComplete › should update state with the received account details

    AssertionError: expected { Object (connectedUserID, displayName, ...) } to deeply equal { Object (connectedUserID, displayName, ...) }

      104 | 			};
      105 | 			const newState = stripeConnectAccountReducer( undefined, action );
    > 106 | 			expect( newState ).to.eql( {
      107 | 				connectedUserID: 'acct_14qyt6Alijdnw0EA',
      108 | 				displayName: '',
      109 | 				email: 'foo@bar.com',
      
      at Object.<anonymous> (client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/reducer.js:106:26)

  ● reducer › connectAccountOAuthConnectComplete Success › should update state

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

      762 | 			};
      763 | 			const newState = stripeConnectAccountReducer( undefined, action );
    > 764 | 			expect( newState ).to.eql( {
      765 | 				connectedUserID: 'acct_14qyt6Alijdnw0EA',
      766 | 				email: '',
      767 | 				error: '',
      
      at Object.<anonymous> (client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/reducer.js:764:26)

Test Suites: 1 failed, 1 total
Tests:       3 failed, 30 passed, 33 total
Snapshots:   0 total
Time:        7.144s
Ran all test suites matching /client\/extensions\/woocommerce\/state\/sites\/settings\/stripe-connect-account\/test\/reducer.js/i.
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/selectors.js
FAIL client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/selectors.js
  selectors
    #getIsCreating
      ✓ should be false when state is uninitialized. (2ms)
      ✓ should be true when attempting to create an account.
      ✓ should be false after creating an account.
    #getError
      ✓ should return error when present. (1ms)
      ✓ should return empty string when not.
    #getNotifyCompleted
      ✕ should return false when account is being created. (15ms)
      ✕ should return true after account has been created. (1ms)
      ✕ should return false when oauth is connecting.
      ✕ should return true when oauth has connected.
    #getIsRequesting
      ✓ should be false when state is uninitialized.
      ✓ should be true when fetching account details.
      ✓ should be false when not fetching account details.
    #getStripeConnectAccount
      ✓ should be empty when state is uninitialized. (1ms)
      ✓ should return account details when they are available in state.
    #getIsDeauthorizing
      ✓ should be false when woocommerce state is not available.
      ✓ should be false when connected.
      ✓ should be true when deauthorizing. (1ms)
      ✓ should be false when deauthorization has completed.
    #getIsOAuthInitializing
      ✓ should be false when woocommerce state is not available.
      ✓ should be true when initializing.
      ✓ should be false when initialization has completed.
    #getIsOAuthConnecting
      ✓ should be false when woocommerce state is not available.
      ✓ should be true when connecting.
      ✓ should be false when connection has completed.
    #getOAuthURL
      ✓ should be empty when woocommerce state is not available.
      ✓ should be empty when initializing.
      ✓ should have a URL when initialization has completed.

  ● selectors › #getNotifyCompleted › should return false when account is being created.

    TypeError: (0 , _selectors.getNotifyCompleted) is not a function

      318 | 	describe( '#getNotifyCompleted', () => {
      319 | 		test( 'should return false when account is being created.', () => {
    > 320 | 			expect( getNotifyCompleted( creatingState, 123 ) ).to.eql( false );
      321 | 		} );
      322 |
      323 | 		test( 'should return true after account has been created.', () => {
      
      at Object.<anonymous> (client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/selectors.js:320:12)

  ● selectors › #getNotifyCompleted › should return true after account has been created.

    TypeError: (0 , _selectors.getNotifyCompleted) is not a function

      322 |
      323 | 		test( 'should return true after account has been created.', () => {
    > 324 | 			expect( getNotifyCompleted( createdState, 123 ) ).to.eql( true );
      325 | 		} );
      326 |
      327 | 		test( 'should return false when oauth is connecting.', () => {
      
      at Object.<anonymous> (client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/selectors.js:324:12)

  ● selectors › #getNotifyCompleted › should return false when oauth is connecting.

    TypeError: (0 , _selectors.getNotifyCompleted) is not a function

      326 |
      327 | 		test( 'should return false when oauth is connecting.', () => {
    > 328 | 			expect( getNotifyCompleted( oauthConnectingState, 123 ) ).to.eql( false );
      329 | 		} );
      330 |
      331 | 		test( 'should return true when oauth has connected.', () => {
      
      at Object.<anonymous> (client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/selectors.js:328:12)

  ● selectors › #getNotifyCompleted › should return true when oauth has connected.

    TypeError: (0 , _selectors.getNotifyCompleted) is not a function

      330 |
      331 | 		test( 'should return true when oauth has connected.', () => {
    > 332 | 			expect( getNotifyCompleted( oauthConnectedState, 123 ) ).to.eql( true );
      333 | 		} );
      334 | 	} );
      335 |
      
      at Object.<anonymous> (client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/selectors.js:332:12)

Test Suites: 1 failed, 1 total
Tests:       4 failed, 23 passed, 27 total
Snapshots:   0 total
Time:        1.91s
Ran all test suites matching /client\/extensions\/woocommerce\/state\/sites\/settings\/stripe-connect-account\/test\/selectors.js/i.
+ : '>>>>> End Test Output'
+ git checkout 6c46667b4d171af667fa6fc0990c0cf35e954ae3 client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/actions.js client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/reducer.js client/extensions/woocommerce/state/sites/settings/stripe-connect-account/test/selectors.js
Updated 3 paths from cb7b6cb22
