+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git checkout 24f0f91bbd36dc626fac11714a900d5b4d9b5cf9 client/extensions/woocommerce/state/data-layer/product-categories/test/index.js
Updated 0 paths from f0513e8ec6
+ git apply --verbose --reject -
Checking patch client/extensions/woocommerce/state/data-layer/product-categories/test/index.js...
Applied patch client/extensions/woocommerce/state/data-layer/product-categories/test/index.js cleanly.
+ : '>>>>> Start Test Output'
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/extensions/woocommerce/state/data-layer/product-categories/test/index.js
FAIL client/extensions/woocommerce/state/data-layer/product-categories/test/index.js
  handlers
    #fetch()
      ✕ should dispatch a get action (11ms)
    #onFetchSuccess()
      ✕ should dispatch a success action with product category information when request completes (1ms)
    #onFetchError()
      ✕ should dispatch error
    #handleProductCategoryCreate
      ✓ should dispatch a post action (7ms)
      ✓ should dispatch a success action with extra properties (1ms)
      ✓ should dispatch a success function with extra parameters (5ms)
    #handleProductCategoryUpdate
      ✓ should dispatch a put action
      ✓ should dispatch a success action with extra properties (2ms)
    #handleProductCategoryDelete
      ✓ should dispatch a delete action
      ✓ should dispatch a deleted action on success (1ms)

  ● handlers › #fetch() › should dispatch a get action

    TypeError: (0 , _.fetch) is not a function

      44 | 				query: {},
      45 | 			};
    > 46 | 			const result = fetch( action );
      47 | 			expect( result ).to.eql(
      48 | 				http( {
      49 | 					method: 'GET',
      
      at Object.<anonymous> (client/extensions/woocommerce/state/data-layer/product-categories/test/index.js:46:19)

  ● handlers › #onFetchSuccess() › should dispatch a success action with product category information when request completes

    TypeError: (0 , _.onFetchSuccess) is not a function

      91 | 				query: {},
      92 | 			};
    > 93 | 			onFetchSuccess( action, response )( dispatch );
      94 | 
      95 | 			expect( dispatch ).calledWith( {
      96 | 				type: WOOCOMMERCE_PRODUCT_CATEGORIES_REQUEST_SUCCESS,
      
      at Object.<anonymous> (client/extensions/woocommerce/state/data-layer/product-categories/test/index.js:93:4)

  ● handlers › #onFetchError() › should dispatch error

    TypeError: (0 , _.onFetchError) is not a function

      113 | 				siteId,
      114 | 			};
    > 115 | 			onFetchError( action, 'error' )( dispatch );
      116 | 
      117 | 			expect( dispatch ).to.have.been.calledWith(
      118 | 				match( {
      
      at Object.<anonymous> (client/extensions/woocommerce/state/data-layer/product-categories/test/index.js:115:4)

Test Suites: 1 failed, 1 total
Tests:       3 failed, 7 passed, 10 total
Snapshots:   0 total
Time:        2.021s
Ran all test suites matching /client\/extensions\/woocommerce\/state\/data-layer\/product-categories\/test\/index.js/i.
+ : '>>>>> End Test Output'
+ git checkout 24f0f91bbd36dc626fac11714a900d5b4d9b5cf9 client/extensions/woocommerce/state/data-layer/product-categories/test/index.js
Updated 1 path from f0513e8ec6
