Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit da52484

Browse files
author
Kamil Kisiela
committed
refactor: md-checkbox test
1 parent 9ff3e22 commit da52484

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/types/checkbox-spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("formlyMaterial - checkbox type", () => {
2727

2828
let form = $compile(testUtils.getFormTemplate())($scope);
2929
$scope.$digest();
30-
element = form.find('[ng-model]')[0];
30+
element = form.find('[ng-model]');
3131
}
3232

3333
//
@@ -47,11 +47,11 @@ describe("formlyMaterial - checkbox type", () => {
4747
});
4848

4949
it('should be md-checkbox element', () => {
50-
expect(element.nodeName).toBe('MD-CHECKBOX');
50+
expect(element[0].nodeName).toBe('MD-CHECKBOX');
5151
});
5252

5353
it("should have label", () => {
54-
expect(element.innerText).toContain("test field");
54+
expect(element.html()).toContain("test field");
5555
});
5656

5757
});

0 commit comments

Comments
 (0)