File tree 1 file changed +0
-14
lines changed
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -192,20 +192,6 @@ describe('Sync', () => {
192
192
} ) ;
193
193
194
194
describe ( 'destructive changes' , ( ) => {
195
- it ( 'can use the allow_destructive_changes param to do a destructive service delete' , async ( ) => {
196
- const syncService = await createSampleMongodbSyncService ( services ) ;
197
- let stitchError ;
198
- try {
199
- await services . service ( syncService . _id ) . remove ( ) ;
200
- } catch ( e ) {
201
- stitchError = e ;
202
- }
203
- expect ( stitchError . code ) . toBe ( 'DestructiveChangeNotAllowed' ) ;
204
-
205
- const deleteResult = await services . service ( syncService . _id ) . remove ( { allow_destructive_changes : true } ) ;
206
- expect ( deleteResult . status ) . toBe ( 204 ) ;
207
- } ) ;
208
-
209
195
it ( 'can use the allow_destructive_changes param to do a destructive rule create' , async ( ) => {
210
196
const syncService = await createSampleMongodbSyncService ( services ) ;
211
197
You can’t perform that action at this time.
0 commit comments