Item Photo download scheduler #338

Merged
joan merged 4 commits from 2351-item_image_queue into test 2020-07-15 09:07:39 +00:00
1 changed files with 0 additions and 17 deletions
Showing only changes of commit 68c19fa22a - Show all commits

View File

@ -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);
});
});