mirror of
https://github.com/github/codeql-action.git
synced 2025-12-11 18:24:43 +08:00
Introduce codeql.supportsFeature
This is a slightly simpler API
This commit is contained in:
4
lib/testing-utils.js
generated
4
lib/testing-utils.js
generated
@@ -196,11 +196,11 @@ const makeVersionInfo = (version, features) => ({
|
||||
});
|
||||
exports.makeVersionInfo = makeVersionInfo;
|
||||
function mockCodeQLVersion(version, features) {
|
||||
return {
|
||||
return codeql.setCodeQL({
|
||||
async getVersion() {
|
||||
return (0, exports.makeVersionInfo)(version, features);
|
||||
},
|
||||
};
|
||||
});
|
||||
}
|
||||
exports.mockCodeQLVersion = mockCodeQLVersion;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user