Comparing version 2.1.1 to 2.2.0
@@ -132,3 +132,7 @@ #!/usr/bin/env node | ||
} | ||
resolve(defaultConfig(config || {})); | ||
// Allow loaded configs to return a promise | ||
Promise.resolve(config).then(config => { | ||
resolve(defaultConfig(config || {})); | ||
}); | ||
}); | ||
@@ -135,0 +139,0 @@ } |
# Changelog | ||
## 2.2.0 (2019-04-16) | ||
* Allow loaded config to return promises | ||
## 2.1.1 (2018-04-24) | ||
@@ -5,0 +9,0 @@ |
{ | ||
"name": "pa11y-ci", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Pa11y CI is a CI-centric accessibility test runner, built using Pa11y", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -63,2 +63,17 @@ /* eslint max-len: 'off' */ | ||
describe('pa11y-ci (with a config file that has a "js" extension that returns a promise)', () => { | ||
before(() => { | ||
return global.cliCall([ | ||
'--config', | ||
'extension-js-promise' | ||
]); | ||
}); | ||
it('loads the expected config', () => { | ||
assert.include(global.lastResult.output, 'http://localhost:8090/config-extension-js-promise'); | ||
}); | ||
}); | ||
describe('pa11y-ci (with a config file that has a specified JSON extension)', () => { | ||
@@ -65,0 +80,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64662
59
1371