mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
unit test source-file with custom lib target-dir
for JAR and AAR (GH-540) Co-Authored-By: Kyle Kirbatski <kkirbatski@gmrmarketing.com> Co-Authored-By: Christopher J. Brody <chris.brody@gmail.com> Co-Authored-By: @afdev82 (Antonio Facciolo)
This commit is contained in:
@@ -108,6 +108,19 @@ describe('android project handler', function () {
|
||||
expect(copyFileSpy)
|
||||
.toHaveBeenCalledWith(dummyplugin, 'src/android/DummyPlugin2.java', temp, path.join('app/src/main/src/com/phonegap/plugins/dummyplugin/DummyPlugin2.java'), false);
|
||||
});
|
||||
|
||||
// TODO: renumber these tests and other tests below
|
||||
it('Test#007a : should allow installing lib file from sources using proper path', function () {
|
||||
android['source-file'].install(valid_source[2], dummyPluginInfo, dummyProject, {android_studio: true});
|
||||
expect(copyFileSpy)
|
||||
.toHaveBeenCalledWith(dummyplugin, 'src/android/TestLib.jar', temp, path.join('app/libs/TestLib.jar'), false);
|
||||
});
|
||||
|
||||
it('Test#007b : should allow installing aar file from sources using proper path', function () {
|
||||
android['source-file'].install(valid_source[3], dummyPluginInfo, dummyProject, {android_studio: true});
|
||||
expect(copyFileSpy)
|
||||
.toHaveBeenCalledWith(dummyplugin, 'src/android/TestAar.aar', temp, path.join('app/libs/TestAar.aar'), false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('of <framework> elements', function () {
|
||||
|
||||
Reference in New Issue
Block a user