<commit_before>import { createStyle, parseModifiers, toFinalProps } from '../src/api'
import { Styli } from '../src/styli'
import { toStyle } from '../src/plugins'

describe('api', () => {
  it('createStyle', () => {
    expect(createStyle('p-10')).toMatchObject({ padding: '10px' })
    expect(createStyle('p-10', 'm-10')).toMatchObject({ padding: '10px', margin: '10px' })
    expect(
      createStyle('p-10', 'm-10', {
        background: 'red',
      }),
    ).toMatchObject({ padding: '10px', margin: '10px', background: 'red' })
  })

  it('toFinalProps', () => {
    Styli.config({ plugins: [toStyle] })
    expect(toFinalProps({ 'p-10': true })).toMatchObject({ style: { padding: '10px' } })
  })

  it('parseModifiers', () => {
    expect(parseModifiers({ 'p-10': true })).toMatchObject({
      styliStyle: { padding: '10px' },
      styliKeys: ['p-10'],
    })
  })
})<commit_msg>style: remove unuse code<commit_after>import { createStyle, parseModifiers, toFinalProps } from '../src/api'

describe('api', () => {
  it('createStyle', () => {
    expect(createStyle('p-10')).toMatchObject({ padding: '10px' })
    expect(createStyle('p-10', 'm-10')).toMatchObject({ padding: '10px', margin: '10px' })
    expect(
      createStyle('p-10', 'm-10', {
        background: 'red',
      }),
    ).toMatchObject({ padding: '10px', margin: '10px', background: 'red' })
  })

  it('toFinalProps', () => {
    expect(toFinalProps({ 'p-10': true })).toMatchObject({ style: { padding: '10px' } })
  })

  it('parseModifiers', () => {
    expect(parseModifiers({ 'p-10': true })).toMatchObject({
      styliStyle: { padding: '10px' },
      styliKeys: ['p-10'],
    })
  })
})
{'fraction_non_alphanumeric': 0.22998805256869773, 'fraction_numerical': 0.035842293906810034, 'mean_word_length': 3.5640326975476837, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4914103', 'n_tokens_mistral': 617, 'n_tokens_neox': 582, 'n_words': 108}