From 68c19fa22a77ec40e6219a9d4da55384a08b6c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20S=C3=A1nchez?= Date: Tue, 14 Jul 2020 11:17:53 +0200 Subject: [PATCH] Removed test --- .../specs/downloadImages.spec.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 modules/item/back/methods/item-image-queue/specs/downloadImages.spec.js diff --git a/modules/item/back/methods/item-image-queue/specs/downloadImages.spec.js b/modules/item/back/methods/item-image-queue/specs/downloadImages.spec.js deleted file mode 100644 index 305833fe6..000000000 --- a/modules/item/back/methods/item-image-queue/specs/downloadImages.spec.js +++ /dev/null @@ -1,17 +0,0 @@ -const app = require('vn-loopback/server/server'); -const fs = require('fs-extra'); - -// #2367 - Create tests when table itemImageQueue exists -xdescribe('ItemImageQueue downloadImages()', () => { - it('should iterate over images', async() => { - spyOn(fs, 'mkdir'); - spyOn(fs, 'createWriteStream'); - - const models = app.models; - const imageModel = spyOn(models.Image, 'registerImage'); - - const res = await app.models.ItemImageQueue.downloadImages(); - - expect(res).toEqual(1); - }); -});