2016-07-30 15:59:16 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
jest.autoMockOff();
|
|
|
|
|
2016-08-22 15:56:14 +00:00
|
|
|
const makeBuildPatch = require('../../android/patches/makeBuildPatch');
|
2016-07-30 15:59:16 +00:00
|
|
|
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`);
|
|
|
|
});
|
|
|
|
});
|