-
Notifications
You must be signed in to change notification settings - Fork 776
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: require new release rule help docs to be active before creating…
… release (#1700) * tests: require new release rule help docs to be active before creating release * use underscores * update comment * update comment * use split * add test_rule_help_version to workflows
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
var https = require('https'); | ||
var path = require('path'); | ||
var assert = require('assert'); | ||
var packageJSON = require(path.join(__dirname, '../package.json')); | ||
|
||
var versions = packageJSON.version.split('.'); | ||
var version = versions[0] + '.' + versions[1]; | ||
|
||
it( | ||
'latest axe version (' + version + ') rule help docs should be active', | ||
function(done) { | ||
https.get('https://dequeuniversity.com/rules/axe/' + version, function( | ||
res | ||
) { | ||
assert(res.statusCode >= 200 && res.statusCode <= 299); | ||
done(); | ||
}); | ||
} | ||
); |