mirror of
https://github.com/status-im/react-native.git
synced 2025-01-17 04:50:59 +00:00
51c0e81557
Reviewed By: cpojer Differential Revision: D5237192 fbshipit-source-id: dccca52a91259d7fea27931f92bca94184a82d4a
19 lines
517 B
JavaScript
19 lines
517 B
JavaScript
'use strict';
|
|
|
|
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('');
|
|
});
|
|
});
|