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

Commit 15ce796

Browse files
author
Kent C. Dodds
committed
test(formly-form): Add test for attribute version of formly-form
Some people prefer to specify directives as attributes only. This adds a test to verify this is possible. This is a skipped test because I'm going to use it for a first-timers-only issue. tests for #450
1 parent 05a5724 commit 15ce796

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/directives/formly-form.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ describe('formly-form', () => {
2121
scope.fields = [];
2222
}));
2323

24+
it.skip(`should be possible to use it as an attribute directive`, () => {
25+
const el = compileAndDigest(`
26+
<div formly-form model="model" fields="fields" form="theForm"></formly-form>
27+
`);
28+
expect(el.length).to.equal(1);
29+
expect(el.prop('nodeName').toLowerCase()).to.equal('ng-form');
30+
});
31+
2432
it('should use ng-form as the default root tag', () => {
2533
const el = compileAndDigest(`
2634
<formly-form model="model" fields="fields" form="theForm"></formly-form>

0 commit comments

Comments
 (0)