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
512 B
JavaScript
19 lines
512 B
JavaScript
'use strict';
|
|
|
|
const makeImportPatch = require('../../android/patches/makeImportPatch');
|
|
|
|
const packageImportPath = 'import some.example.project';
|
|
|
|
describe('makeImportPatch', () => {
|
|
it('should build a patch', () => {
|
|
expect(Object.prototype.toString(makeImportPatch(packageImportPath)))
|
|
.toBe('[object Object]');
|
|
});
|
|
|
|
it('MainActivity contains a correct import patch', () => {
|
|
const {patch} = makeImportPatch(packageImportPath);
|
|
|
|
expect(patch).toBe('\n' + packageImportPath);
|
|
});
|
|
});
|