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
17 lines
446 B
JavaScript
17 lines
446 B
JavaScript
'use strict';
|
|
|
|
const makeBuildPatch = require('../../android/patches/makeBuildPatch');
|
|
const name = 'test';
|
|
|
|
describe('makeBuildPatch', () => {
|
|
it('should build a patch function', () => {
|
|
expect(Object.prototype.toString(makeBuildPatch(name)))
|
|
.toBe('[object Object]');
|
|
});
|
|
|
|
it('should make a correct patch', () => {
|
|
const {patch} = makeBuildPatch(name);
|
|
expect(patch).toBe(` compile project(':${name}')\n`);
|
|
});
|
|
});
|