Skip to content

Commit

Permalink
test(check_reqs): do not hardcode DEFAULT_TARGET_API (apache#1263)
Browse files Browse the repository at this point in the history
Should have been part of apache#1212
  • Loading branch information
raphinesse authored and wedgberto committed May 17, 2022
1 parent 897f897 commit 4ea682d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/unit/check_reqs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4ea682d

Please sign in to comment.