mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
51c0e81557
Reviewed By: cpojer Differential Revision: D5237192 fbshipit-source-id: dccca52a91259d7fea27931f92bca94184a82d4a
19 lines
542 B
JavaScript
19 lines
542 B
JavaScript
'use strict';
|
|
|
|
const path = require('path');
|
|
const isInstalled = require('../../android/isInstalled');
|
|
|
|
const projectConfig = {
|
|
buildGradlePath: path.join(__dirname, '../../__fixtures__/android/patchedBuild.gradle'),
|
|
};
|
|
|
|
describe('android::isInstalled', () => {
|
|
it('should return true when project is already in build.gradle', () =>
|
|
expect(isInstalled(projectConfig, 'test')).toBeTruthy()
|
|
);
|
|
|
|
it('should return false when project is not in build.gradle', () =>
|
|
expect(isInstalled(projectConfig, 'test2')).toBeFalsy()
|
|
);
|
|
});
|