mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
unit test uninstall of <source-file> with app dest
for Java source, JAR, and AAR Co-authored-by: Christopher J. Brody <chris.brody@gmail.com> Co-authored-by: Kyle Kirbatski <kkirbatski@gmrmarketing.com> Co-authored-by: Antonio Facciolo <afdev82@users.noreply.github.com>
This commit is contained in:
parent
3caefcae49
commit
c15312ee70
@ -290,6 +290,22 @@ describe('android project handler', function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe('of <source-file> element, with JAR in specific app target-dir', function () {
|
||||
it('Test#019b : should remove stuff by calling common.deleteJava for Android Studio projects, with JAR into specific app target-dir', function () {
|
||||
android['source-file'].install(valid_source[2], dummyPluginInfo, dummyProject, {android_studio: true});
|
||||
android['source-file'].uninstall(valid_source[2], dummyPluginInfo, dummyProject, {android_studio: true});
|
||||
expect(removeFileSpy).toHaveBeenCalledWith(temp, path.join('app/libs/TestLib.jar'));
|
||||
});
|
||||
});
|
||||
|
||||
describe('of <source-file> element, with AAR in specific app target-dir', function () {
|
||||
it('Test#019c : should remove stuff by calling common.deleteJava for Android Studio projects, with JAR into specific app target-dir', function () {
|
||||
android['source-file'].install(valid_source[3], dummyPluginInfo, dummyProject, {android_studio: true});
|
||||
android['source-file'].uninstall(valid_source[3], dummyPluginInfo, dummyProject, {android_studio: true});
|
||||
expect(removeFileSpy).toHaveBeenCalledWith(temp, path.join('app/libs/TestAar.aar'));
|
||||
});
|
||||
});
|
||||
|
||||
describe('of <framework> elements', function () {
|
||||
|
||||
var someString = jasmine.any(String);
|
||||
|
Loading…
Reference in New Issue
Block a user