import { css, StyleSheet, StyleSheetTestUtils } from 'aphrodite'; import * as React from 'react'; import { createSerializer } from './serializer'; import { checkSnapshotForEachMethod} from './testUtil'; expect.addSnapshotSerializer( createSerializer(() => StyleSheetTestUtils, { removeVendorPrefixes: true }), ); const Wrapper: React.SFC = props => { const styles = StyleSheet.create({ wrapper: { display: 'flex', transform: 'translate(0, 0)', }, }); return
; }; const Title: React.SFC = props => { const styles = StyleSheet.create({ title: { color: 'palevioletred', fontSize: '1.5em', textAlign: 'center', }, }); return

; }; test('removes vendor prefixed rules', () => { checkSnapshotForEachMethod( Hello World, this is my first component styled with aphrodite! , ); }); test('removes vendor prefixes inside mediaQueries', () => { const styles = StyleSheet.create({ root: { '@media(min-width: 200px)': { transform: 'translate(0, 0)', }, '@supports(display: grid)': { display: 'flex', }, }, }); checkSnapshotForEachMethod(
); });