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 file types
Jump to…
Jump to file
Failed to load files.

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'}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.