@lad-tech/mobydick-core
Version:
React Native components library focused on usability, accessibility and developer experience
14 lines (10 loc) • 372 B
text/typescript
import {getConfig, setConfig} from '../index';
describe('config', () => {
test('setConfig and getConfig', () => {
expect(getConfig().allowFontScaling).toBe(true);
setConfig({allowFontScaling: true});
expect(getConfig().allowFontScaling).toBe(true);
setConfig({allowFontScaling: false});
expect(getConfig().allowFontScaling).toBe(false);
});
});