From 2037b62f995a49c2cae65d39ad6ca963b0b21aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20von=20der=20Gr=C3=BCn?= Date: Tue, 6 Jul 2021 18:12:00 +0200 Subject: [PATCH] test(check_reqs): do not hardcode DEFAULT_TARGET_API (#1263) Should have been part of #1212 --- spec/unit/check_reqs.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/unit/check_reqs.spec.js b/spec/unit/check_reqs.spec.js index dba00178..b2bf8aca 100644 --- a/spec/unit/check_reqs.spec.js +++ b/spec/unit/check_reqs.spec.js @@ -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;