mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
fix: GH-873 App bundle builds to obey command-line arguments (#941)
This commit is contained in:
@@ -113,6 +113,23 @@ describe('ProjectBuilder', () => {
|
||||
});
|
||||
expect(args[0]).toBe('clean');
|
||||
});
|
||||
|
||||
describe('should accept extra arguments', () => {
|
||||
it('apk', () => {
|
||||
const args = builder.getArgs('debug', {
|
||||
extraArgs: ['-PcdvVersionCode=12344']
|
||||
});
|
||||
expect(args).toContain('-PcdvVersionCode=12344');
|
||||
});
|
||||
|
||||
it('bundle', () => {
|
||||
const args = builder.getArgs('debug', {
|
||||
packageType: 'bundle',
|
||||
extraArgs: ['-PcdvVersionCode=12344']
|
||||
});
|
||||
expect(args).toContain('-PcdvVersionCode=12344');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('runGradleWrapper', () => {
|
||||
|
||||
Reference in New Issue
Block a user