mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
fix: clean command (#815)
* fix clean command * added unit tests for the getArgs clean * Cleaned up ProjectBuilder.getArgs for readability
This commit is contained in:
@@ -100,6 +100,20 @@ describe('ProjectBuilder', () => {
|
||||
|
||||
expect(args).toContain(`-PcdvBuildArch=${arch}`);
|
||||
});
|
||||
|
||||
it('should clean apk', () => {
|
||||
const args = builder.getArgs('clean', {
|
||||
packageType: 'apk'
|
||||
});
|
||||
expect(args[0]).toBe('clean');
|
||||
});
|
||||
|
||||
it('should clean bundle', () => {
|
||||
const args = builder.getArgs('clean', {
|
||||
packageType: 'bundle'
|
||||
});
|
||||
expect(args[0]).toBe('clean');
|
||||
});
|
||||
});
|
||||
|
||||
describe('runGradleWrapper', () => {
|
||||
|
||||
Reference in New Issue
Block a user