18 lines
602 B
JavaScript
18 lines
602 B
JavaScript
// const catchErrors = require('../../../../../../services/utils/jasmineHelpers').catchErrors;
|
|
const app = require('../../../../../item/server/server');
|
|
|
|
describe('Model installCrudModel()', () => {
|
|
it('all models extends installCrudModel propertie', () => {
|
|
let someModel = app.models.Item;
|
|
|
|
expect(someModel.installCrudModel).toBeDefined();
|
|
});
|
|
|
|
it('installCrudModel() create a new remothed method', () => {
|
|
let someModel = app.models.Item;
|
|
someModel.installCrudModel('someCrudMethod');
|
|
|
|
expect(someModel.someCrudMethod).toBeDefined();
|
|
});
|
|
});
|