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:
Norman Breau
2019-09-07 01:54:33 -03:00
committed by エリス
parent c93e3e9f6f
commit 1b11206174
2 changed files with 15 additions and 2 deletions
+14
View File
@@ -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', () => {