2018-04-18 12:37:17 +00:00
|
|
|
const clone = require('../clone');
|
|
|
|
const model = {
|
|
|
|
remoteMethod: () => {}
|
|
|
|
};
|
|
|
|
let Loopback = require('../../../test-helpers/loopback');
|
|
|
|
Loopback.init(model);
|
|
|
|
|
|
|
|
Loopback.rawSql(model);
|
|
|
|
clone(model);
|
|
|
|
|
2018-04-18 12:42:30 +00:00
|
|
|
// disabled test while loopback findOne method isnt extended to model yet.
|
2018-04-18 12:37:17 +00:00
|
|
|
describe('item clone()', () => {
|
|
|
|
it('should', () => {
|
2018-04-18 12:42:30 +00:00
|
|
|
|
|
|
|
// let itemFk = 1;
|
|
|
|
// model.clone(itemFk)
|
|
|
|
// .then(response => {
|
|
|
|
// expect(response).toEqual('whatever');
|
|
|
|
// done();
|
|
|
|
// });
|
2018-04-18 12:37:17 +00:00
|
|
|
});
|
|
|
|
});
|