INNER CODE UNIT · JavaScript
withSwappedArrow
jasongaare/react-native-walkthrough-tooltip · __tests__/geom.test.js:40
const withSwappedArrow = options => ({
...options,
arrowSize: swapSizeDimmensions(options.arrowSize),
});
describe('Testing Computing Geometry', () => {
it('correctly calculates top geometry', () => {
expect(computeTopGeometry(options1)).toMatchSnapshot();
expect(computeTopGeometry(options2)).toMatchSnapshot();
expect(computeTopGeometry(options3)).toMatchSnapshot();
});
it('correctly calculates bottom geometry', () => {
expect(computeBottomGeometry(options1)).toMatchSnapshot();
expect(computeBottomGeometry(options2)).toMatchSnapshot();
expect(computeBottomGeometry(options3)).toMatchSnapshot();
});