mirror of
https://github.com/status-im/react-native.git
synced 2025-01-17 21:11:45 +00:00
107fc72dab
Differential Revision: D3752878 fbshipit-source-id: f248082effde9133dd6a9edf8a2f2cfc05279eab
21 lines
538 B
JavaScript
21 lines
538 B
JavaScript
'use strict';
|
|
|
|
jest.autoMockOff();
|
|
|
|
const makeStringsPatch = require('../../android/patches/makeStringsPatch');
|
|
|
|
describe('makeStringsPatch', () => {
|
|
it('should export a patch with <string> element', () => {
|
|
const params = {
|
|
keyA: 'valueA',
|
|
};
|
|
|
|
expect(makeStringsPatch(params, 'module').patch)
|
|
.toContain('<string moduleConfig="true" name="module_keyA">valueA</string>');
|
|
});
|
|
|
|
it('should export an empty patch if no params given', () => {
|
|
expect(makeStringsPatch({}, 'module').patch).toBe('');
|
|
});
|
|
});
|