File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
src/legacy/ui/public/saved_objects/__tests__ Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ describe('Saved Object', function() {
3434 require ( 'test_utils/no_digest_promises' ) . activateForSuite ( ) ;
3535
3636 let SavedObject ;
37- let esDataStub ;
3837 let savedObjectsClientStub ;
3938 let window ;
4039
@@ -90,10 +89,6 @@ describe('Saved Object', function() {
9089 obj [ fName ] . restore && obj [ fName ] . restore ( ) ;
9190 }
9291
93- const mock409FetchError = {
94- res : { status : 409 } ,
95- } ;
96-
9792 beforeEach (
9893 ngMock . module (
9994 'kibana' ,
@@ -111,7 +106,6 @@ describe('Saved Object', function() {
111106 ngMock . inject ( function ( $window ) {
112107 savedObjectsClientStub = npStart . core . savedObjects . client ;
113108 SavedObject = createSavedObjectClass ( { savedObjectsClient : savedObjectsClientStub } ) ;
114- esDataStub = npStart . plugins . data . search . __LEGACY . esClient ;
115109 window = $window ;
116110 } )
117111 ) ;
@@ -130,7 +124,6 @@ describe('Saved Object', function() {
130124 describe ( 'with confirmOverwrite' , function ( ) {
131125 function stubConfirmOverwrite ( ) {
132126 window . confirm = sinon . stub ( ) . returns ( true ) ;
133- esDataStub . create . returns ( Bluebird . reject ( mock409FetchError ) ) ;
134127 }
135128
136129 it ( 'when false does not request overwrite' , function ( ) {
You can’t perform that action at this time.
0 commit comments