18 lines
370 B
JavaScript
18 lines
370 B
JavaScript
|
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 1 A');
|
||
|
});
|
||
|
});
|
||
|
|