UNPKG

@razorpay/blade

Version:

The Design System that powers Razorpay

25 lines (22 loc) 499 B
import { applyTransform } from '@hypermod/utils'; import * as transformer from '..'; it('should migrate the Divider component', async () => { const result = await applyTransform( transformer, ` const App = () => ( <> <Divider variant="normal" /> </> ); `, { parser: 'tsx' }, ); expect(result).toMatchInlineSnapshot(` "const App = () => ( <> <Divider variant="muted" /> </> );" `); });