20 lines
484 B
JavaScript
20 lines
484 B
JavaScript
import './index';
|
|
|
|
describe('component vnShelving', () => {
|
|
let controller;
|
|
|
|
beforeEach(ngModule('shelving'));
|
|
|
|
beforeEach(inject($componentController => {
|
|
controller = $componentController('vnShelving', {$element: null});
|
|
}));
|
|
|
|
describe('exprBuilder()', () => {
|
|
it('should search by code', () => {
|
|
let expr = controller.exprBuilder('search', 'UXN');
|
|
|
|
expect(expr).toEqual({code: {like: '%UXN%'}},);
|
|
});
|
|
});
|
|
});
|