You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
875 B

import Colors from "../src/themes/Colors";
import Fonts from '../src/themes/Fonts';
import Icons from '../src/themes/Icons';
import Metrics, {buildTestMetrics} from "../src/themes/Metrics";
import {styles} from '../src/screens/styles/AppStyles';
test('Imported colors', () => {
expect(Colors).toEqual(expect.anything());
})
test('Imported fonts', () => {
expect(Fonts).toEqual(expect.anything());
})
test('Imported icons', () => {
expect(Icons).toEqual(expect.anything());
})
test('Imported screen dimensions', () => {
expect(Metrics).toEqual(expect.anything());
})
test('Metrics height < width', () => {
let Metrics = buildTestMetrics({width: 100, height: 200});
expect(Metrics.screenHeight).toEqual(200);
})
test('Metrics height > width', () => {
let Metrics = buildTestMetrics({width: 200, height: 100});
expect(Metrics.screenHeight).toEqual(200);
})