test(check_reqs): do not hardcode DEFAULT_TARGET_API (#1263)

Should have been part of #1212
This commit is contained in:
Raphael von der Grün 2021-07-06 18:12:00 +02:00 committed by GitHub
parent 21f64806c0
commit 2037b62f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,8 +25,9 @@ var events = require('cordova-common').events;
var which = require('which');
const { CordovaError } = require('cordova-common');
// This should match /bin/templates/project/build.gradle
const DEFAULT_TARGET_API = 30;
const {
SDK_VERSION: DEFAULT_TARGET_API
} = require('../../bin/templates/cordova/lib/gradle-config-defaults');
describe('check_reqs', function () {
let check_reqs;