25 lines
618 B
JavaScript
25 lines
618 B
JavaScript
|
describe('Component vnField', () => {
|
||
|
let $element;
|
||
|
let controller;
|
||
|
|
||
|
beforeEach(ngModule('vnCore'));
|
||
|
|
||
|
beforeEach(inject(($compile, $rootScope) => {
|
||
|
$element = $compile(`<vn-textfield></vn-textfield>`)($rootScope);
|
||
|
controller = $element.controller('vnTextfield');
|
||
|
}));
|
||
|
|
||
|
afterEach(() => {
|
||
|
$element.remove();
|
||
|
});
|
||
|
|
||
|
// Remove this block
|
||
|
describe('clearDisabled binding', () => {
|
||
|
it(`should enable the show property`, () => {
|
||
|
controller.clearDisabled = true;
|
||
|
|
||
|
expect(controller.clearDisabled).toEqual(true);
|
||
|
});
|
||
|
});
|
||
|
});
|