2016-11-03 08:55:32 +08:00
|
|
|
|
|
|
|
var path = require('path');
|
|
|
|
var AndroidStudio = require('../../bin/templates/cordova/lib/AndroidStudio');
|
|
|
|
|
|
|
|
describe('AndroidStudio module', function () {
|
2017-06-14 02:42:20 +08:00
|
|
|
it('should return true for Android Studio project', function () {
|
|
|
|
var root = path.join(__dirname, '../fixtures/android_studio_project/');
|
|
|
|
var isAndStud = AndroidStudio.isAndroidStudioProject(root);
|
|
|
|
expect(isAndStud).toBe(true);
|
2016-11-03 08:55:32 +08:00
|
|
|
});
|
2017-06-14 02:42:20 +08:00
|
|
|
it('should return false non Android Studio project', function () {
|
|
|
|
var root = path.join(__dirname, '../fixtures/android_project/');
|
|
|
|
var isAndStud = AndroidStudio.isAndroidStudioProject(root);
|
|
|
|
expect(isAndStud).toBe(false);
|
2016-11-03 08:55:32 +08:00
|
|
|
});
|
|
|
|
});
|