+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git checkout 24d762a0fe3a92500f92323b038a2389cb6ecae5 client/lib/posts/test/utils.js
Updated 0 paths from bbe9b0201
+ git apply --verbose --reject -
Checking patch client/lib/posts/test/utils.js...
Applied patch client/lib/posts/test/utils.js cleanly.
+ : '>>>>> Start Test Output'
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/lib/posts/test/utils.js
FAIL client/lib/posts/test/utils.js
  utils
    #getEditURL
      ✓ should return correct path type=post is supplied (2ms)
      ✓ should return correct path type=page is supplied
      ✓ should return correct path when custom post type is supplied
      ✕ should default to type=post if no post type is supplied (9ms)
    #getVisibility
      ✓ should return undefined when no post is supplied
      ✓ should return public when password and private are not set
      ✓ should return private when post#status is private
      ✓ should return password when post#password is set
    #isPrivate
      ✓ should return undefined when no post is supplied
      ✓ should return true when post.status is private
      ✓ should return false when post.status is not private (1ms)
    #isPublished
      ✓ should return undefined when no post is supplied
      ✓ should return true when post.status is private
      ✓ should return true when post.status is publish
      ✓ should return false when post.status is not publish or private
    #isPending
      ✓ should return undefined when no post is supplied
      ✓ should return true when post.status is pending
      ✓ should return false when post.status is not pending
    #isBackDatedPublished
      ✓ should return false when no post is supplied
      ✓ should return false when status !== future
      ✓ should return false when status === future and date is in future (1ms)
      ✓ should return true when status === future and date is in the past
    #removeSlug
      ✓ should return undefined when no path is supplied
      ✓ should strip slug on post URL
      ✓ should strip slug on page URL
    #getPermalinkBasePath
      ✓ should return undefined when no post is supplied
      ✓ should return post.URL when post is published
      ✓ should use permalink_URL when not published and present
    #getPagePath
      ✓ should return undefined when no post is supplied
      ✓ should return post.URL without slug when page is published
      ✓ should use permalink_URL when not published and present
    #getFeaturedImageId()
      ✓ should return undefined when no post is specified
      ✓ should return a non-URL featured_image property
      ✓ should return a `null` featured_image property
      ✓ should fall back to post thumbnail object ID if exists, if featured_image is URL
      ✓ should return undefined if featured_image is URL and post thumbnail object doesn't exist (1ms)

  ● utils › #getEditURL › should default to type=post if no post type is supplied

    expect(received).toEqual(expected)
    
    Expected value to equal:
      "/post/en.blog.wordpress.com/123"
    Received:
      "/edit//en.blog.wordpress.com/123"

      44 | 		test( 'should default to type=post if no post type is supplied', () => {
      45 | 			const url = postUtils.getEditURL( { ID: 123, type: '' }, { slug: 'en.blog.wordpress.com' } );
    > 46 | 			expect( url ).toEqual( '/post/en.blog.wordpress.com/123' );
      47 | 		} );
      48 | 	} );
      49 |
      
      at Object.<anonymous> (client/lib/posts/test/utils.js:46:18)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 35 passed, 36 total
Snapshots:   0 total
Time:        2.974s
Ran all test suites matching /client\/lib\/posts\/test\/utils.js/i.
+ : '>>>>> End Test Output'
+ git checkout 24d762a0fe3a92500f92323b038a2389cb6ecae5 client/lib/posts/test/utils.js
Updated 1 path from bbe9b0201
