From b7a36c4d9f706a1dcd65e2d142d39fde75f7ef62 Mon Sep 17 00:00:00 2001 From: Kirollos Risk Date: Mon, 2 May 2016 17:44:49 -0400 Subject: [PATCH] Fixed failing test --- client/my-sites/media-library/test/list.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/my-sites/media-library/test/list.jsx b/client/my-sites/media-library/test/list.jsx index b70108e599e49..960bcaa4f307b 100644 --- a/client/my-sites/media-library/test/list.jsx +++ b/client/my-sites/media-library/test/list.jsx @@ -41,7 +41,6 @@ describe( 'MediaLibraryList item selection', function() { mount = require( 'enzyme' ).mount; MediaLibrarySelectedData = require( 'components/data/media-library-selected-data' ); MediaLibrarySelectedStore = require( 'lib/media/library-selected-store' ); - MediaActions = require( 'lib/media/actions' ); fixtures = require( './fixtures' ); Dispatcher = require( 'dispatcher' ); @@ -53,7 +52,14 @@ describe( 'MediaLibraryList item selection', function() { mockery.registerMock( 'components/infinite-list', EmptyComponent ); mockery.registerMock( './list-item', EmptyComponent ); + mockery.registerMock( './image-orientation-utils', { + fixImageOrientation: function() { + return Promise.resolve( 'blob:123' ); + } + } ); + MediaList = require( '../list' ); + MediaActions = require( 'lib/media/actions' ); } ); beforeEach( function() {