mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 08:53:24 +08:00
unit test uninstall of <source-file> with app dest (PR #542)
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
f8584c63e6
commit
951ff5552e
@ -296,6 +296,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