This repository has been archived by the owner. It is now read-only.

Fix for #410 #415

Merged
merged 1 commit into from Aug 3, 2015
Jump to file or symbol
Failed to load files and symbols.
+3 −3
Diff settings

Always

Just for now

@@ -653,11 +653,11 @@ function formlyField($http, $q, $compile, $templateCache, $interpolate, formlyCo
}
function runApiCheckForType(apiCheck, apiCheckInstance, apiCheckFunction, apiCheckOptions, options) {
- /* eslint complexity:[2, 8] */
+ /* eslint complexity:[2, 9] */
if (!apiCheck) {
return;
}
- const instance = apiCheckInstance || formlyApiCheck;
+ const instance = apiCheckInstance || formlyConfig.extras.apiCheckInstance || formlyApiCheck;
if (instance.config.disabled || apiCheckFactory.globalConfig.disabled) {
return;
}
@@ -732,7 +732,7 @@ describe('formly-field', function() {
});
});
- describe.skip(`formlyConfig.extras.apiCheckInstance`, () => {
+ describe(`formlyConfig.extras.apiCheckInstance`, () => {
it(`should default to this instance when specified and no specific type instance is specified`, () => {
const globalApiCheckInstance = apiCheck({
output: {prefix: 'custom-api-check'}