Skip to content

Commit 2c721b6

Browse files
authored
REALMC-5437 - remove sync destructive service delete test (#399)
1 parent 836058f commit 2c721b6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

test/admin/sync.test.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -192,20 +192,6 @@ describe('Sync', () => {
192192
});
193193

194194
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-
209195
it('can use the allow_destructive_changes param to do a destructive rule create', async() => {
210196
const syncService = await createSampleMongodbSyncService(services);
211197

0 commit comments

Comments
 (0)