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

Commit fd16909

Browse files
author
Kamil Kisiela
committed
test(mdThemeManipulator): add skipping
1 parent dbfc0a7 commit fd16909

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/runs/md-theme-manipulator-spec.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe("formlyMaterial - theme manipulator", () => {
2828
}, options)];
2929

3030
let form = $compile(testUtils.getFormTemplate())($scope);
31+
3132
$scope.$digest();
3233
element = form.find('[ng-model]');
3334
field = $scope.fields[0];
@@ -50,7 +51,17 @@ describe("formlyMaterial - theme manipulator", () => {
5051
});
5152

5253
it('should be able to add md-theme attribute', () => {
54+
compile();
5355
expect(element.attr('md-theme')).toBe('custom');
5456
});
5557

58+
it("should be able to skip md-theme", () => {
59+
compile({
60+
extras: {
61+
skipNgModelAttrsManipulator: true
62+
}
63+
});
64+
expect(element.attr('md-theme')).toBeUndefined();
65+
});
66+
5667
});

0 commit comments

Comments
 (0)