salix/services/loopback/common/methods/item/specs/clone.spec.js

23 lines
543 B
JavaScript
Raw Normal View History

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