+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git checkout 54d626a276373d45ffddd2cf4f7099733c8e43de client/state/data-layer/wpcom/comments/test/index.js
Updated 0 paths from 720e9405e4
+ git apply --verbose --reject -
Checking patch client/state/data-layer/wpcom/comments/test/index.js...
Applied patch client/state/data-layer/wpcom/comments/test/index.js cleanly.
+ : '>>>>> Start Test Output'
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/state/data-layer/wpcom/comments/test/index.js
FAIL client/state/data-layer/wpcom/comments/test/index.js (5.017s)
  wpcom-api
    post comments request
      #fetchPostComments()
        ✕ should dispatch an HTTP request to the post replies endpoint (32ms)
        ✕ should dispatch an HTTP request to the post replies endpoint, before the oldest contiguous comment in state (2ms)
      #addComments
        ✓ should dispatch a comments receive action
        ✓ should dispatch a comments receive action and a count receive action when comments found (5ms)
      commentsFromApi
        ✓ should decode author name entities (2ms)
      #announceFailure
        ✕ should dispatch an error notice (2ms)
      #handleDeleteSuccess
        ✓ should not do anything when no options are set
        ✓ should show a success notice if the related option is set (1ms)
        ✓ should request a fresh copy of a comments page when the query object is filled

  ● wpcom-api › post comments request › #fetchPostComments() › should dispatch an HTTP request to the post replies endpoint

    expect(jest.fn()).toHaveBeenCalledWith(expected)
    
    Expected mock function to have been called with:
      {"body": undefined, "formData": undefined, "method": "GET", "onFailure": {"postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "onProgress": {"postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "onSuccess": {"postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "options": {}, "path": "/sites/2916284/posts/1010/replies", "query": {"apiVersion": "1.1", "number": 50, "order": "DESC", "status": "trash"}, "type": "WPCOM_HTTP_REQUEST"} as argument 1, but it was called with {"body": undefined, "formData": undefined, "method": "GET", "onFailure": {"postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "onProgress": {"postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "onSuccess": {"postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "options": {"retryPolicy": {"name": "NO_RETRY"}}, "path": "/sites/2916284/posts/1010/replies", "query": {"apiVersion": "1.1", "number": 50, "order": "DESC", "status": "trash"}, "type": "WPCOM_HTTP_REQUEST"}.

      41 | 
      42 | 				expect( dispatch ).toHaveBeenCalledTimes( 1 );
    > 43 | 				expect( dispatch ).toHaveBeenCalledWith(
      44 | 					http(
      45 | 						{
      46 | 							apiVersion: '1.1',
      
      at Object.<anonymous> (client/state/data-layer/wpcom/comments/test/index.js:43:24)

  ● wpcom-api › post comments request › #fetchPostComments() › should dispatch an HTTP request to the post replies endpoint, before the oldest contiguous comment in state

    expect(jest.fn()).toHaveBeenCalledWith(expected)
    
    Expected mock function to have been called with:
      {"body": undefined, "formData": undefined, "method": "GET", "onFailure": {"direction": "before", "postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "onProgress": {"direction": "before", "postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "onSuccess": {"direction": "before", "postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "options": {}, "path": "/sites/2916284/posts/1010/replies", "query": {"apiVersion": "1.1", "before": "2017-05-25T19:41:25.841Z", "number": 50, "order": "DESC", "status": "trash"}, "type": "WPCOM_HTTP_REQUEST"} as argument 1, but it was called with {"body": undefined, "formData": undefined, "method": "GET", "onFailure": {"direction": "before", "postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "onProgress": {"direction": "before", "postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "onSuccess": {"direction": "before", "postId": "1010", "query": {"number": 50, "order": "DESC", "status": "trash"}, "siteId": "2916284", "type": "DUMMY_ACTION"}, "options": {"retryPolicy": {"name": "NO_RETRY"}}, "path": "/sites/2916284/posts/1010/replies", "query": {"apiVersion": "1.1", "before": "2017-05-25T19:41:25.841Z", "number": 50, "order": "DESC", "status": "trash"}, "type": "WPCOM_HTTP_REQUEST"}.

      84 | 
      85 | 				expect( dispatch ).toHaveBeenCalledTimes( 1 );
    > 86 | 				expect( dispatch ).toHaveBeenCalledWith(
      87 | 					http(
      88 | 						{
      89 | 							apiVersion: '1.1',
      
      at Object.<anonymous> (client/state/data-layer/wpcom/comments/test/index.js:86:24)

  ● wpcom-api › post comments request › #announceFailure › should dispatch an error notice

    expect(jest.fn()).toHaveBeenCalledWith(expected)
    
    Expected mock function to have been called with:
      ObjectContaining {"notice": ObjectContaining {"duration": 5000, "status": "is-error", "text": "Could not retrieve comments for requested post"}, "type": "NOTICE_CREATE"} as argument 1, but it was called with {"notice": {"noticeId": "1", "showDismiss": true, "status": "is-error", "text": "Could not retrieve comments for requested post"}, "type": "NOTICE_CREATE"}.

      172 | 
      173 | 				expect( dispatch ).toHaveBeenCalledTimes( 1 );
    > 174 | 				expect( dispatch ).toHaveBeenCalledWith(
      175 | 					expect.objectContaining( {
      176 | 						type: NOTICE_CREATE,
      177 | 						notice: expect.objectContaining( {
      
      at Object.<anonymous> (client/state/data-layer/wpcom/comments/test/index.js:174:24)

Test Suites: 1 failed, 1 total
Tests:       3 failed, 6 passed, 9 total
Snapshots:   0 total
Time:        5.162s
Ran all test suites matching /client\/state\/data-layer\/wpcom\/comments\/test\/index.js/i.
+ : '>>>>> End Test Output'
+ git checkout 54d626a276373d45ffddd2cf4f7099733c8e43de client/state/data-layer/wpcom/comments/test/index.js
Updated 1 path from 720e9405e4
