CVarisco/create-component-app

View on GitHub
src/defaultTemplates/css/__tests__/style.template.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import template from '../style.template'

describe('Class Template', () => {
  it('should a string', () => {
    expect(typeof template()).toBe('string')
  })

  it('should have class with component name', () => {
    expect(template('Foo')).toContain('.Foo{}')
  })
})