1 changed files with 31 additions and 0 deletions
@ -0,0 +1,31 @@ |
|||
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); |
|||
}) |
Loading…
Reference in new issue