const app = require('vn-loopback/server/server'); describe('agency clone()', () => { let newZone; afterAll(async done => { await app.models.Zone.destroyById(newZone.id); done(); }); it('should clone a zone', async() => { newZone = await app.models.Zone.clone(1); expect(newZone.name).toEqual('Zone pickup A'); }); });