Skip to content
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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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'}