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

Commit c5ece37

Browse files
author
Brian Spencer
committed
test(formly-field): Adjusted test for #510
1 parent c518e29 commit c5ece37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/directives/formly-field.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,13 +1390,13 @@ describe('formly-field', function() {
13901390
expect(field.validation.errorExistsAndShouldBeVisible, 'now true').to.be.true
13911391
})
13921392

1393-
it.skip(`should work with a custom errorExistsAndShouldBeVisibleExpression`, () => {
1393+
it(`should work with a custom errorExistsAndShouldBeVisibleExpression`, () => {
13941394
const spy = sinon.spy()
13951395
formlyConfig.extras.errorExistsAndShouldBeVisibleExpression = spy
13961396
compileAndDigest()
13971397

13981398
invalidateAndTouchFields()
1399-
expect(spy).to.have.been.calledWith(sinon.match.array, sinon.match.array)
1399+
expect(spy).to.have.been.calledTwice // once for each form control.
14001400
})
14011401

14021402
function invalidateAndTouchFields() {

0 commit comments

Comments
 (0)