<commit_before>// @flow
import React from 'react'
import { shallow } from 'enzyme'

import { resetNoParserStyled, expectCSSMatches } from '../../test/utils'

let styled

describe('basic', () => {
  beforeEach(() => {
    styled = resetNoParserStyled()
  })

  it('should correctly assemble preprocessed CSS', () => {
    // $FlowFixMe
    const Comp = styled.div([[ '{ color: red; }' ]])
    shallow(<Comp />)
    expectCSSMatches('.sc-a {} .b{ color: red; }')
  })

  it('should correctly execute passed functions and assemble preprocessed CSS', () => {
    // $FlowFixMe
    const Comp = styled.div([[ '{ color: ', () => 'red', '; }' ]])
    shallow(<Comp />)
    expectCSSMatches('.sc-a {} .b{ color: red; }')
  })
})<commit_msg>Remove unused flow surpression in no-parser test<commit_after>// @flow
import React from 'react'
import { shallow } from 'enzyme'

import { resetNoParserStyled, expectCSSMatches } from '../../test/utils'

let styled

describe('basic', () => {
  beforeEach(() => {
    styled = resetNoParserStyled()
  })

  it('should correctly assemble preprocessed CSS', () => {
    const Comp = styled.div([[ '{ color: red; }' ]])
    shallow(<Comp />)
    expectCSSMatches('.sc-a {} .b{ color: red; }')
  })

  it('should correctly execute passed functions and assemble preprocessed CSS', () => {
    const Comp = styled.div([[ '{ color: ', () => 'red', '; }' ]])
    shallow(<Comp />)
    expectCSSMatches('.sc-a {} .b{ color: red; }')
  })
})
{'fraction_non_alphanumeric': 0.19890635680109364, 'fraction_numerical': 0.0, 'mean_word_length': 3.357142857142857, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4490954', 'n_tokens_mistral': 486, 'n_tokens_neox': 469, 'n_words': 118}