Sha256: 01791be1c6044374d2f9e0665464ca18c1b66d2a0e158936c59331288e73136a

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 Bytes

Contents

// Generated by Vue on Rails gem ~> github.com/ytbryan/vueonrails 
// To generate component part with test, please run `rails generate vue something --test`

import { shallowMount } from '@vue/test-utils'
<% if options['seperate'] -%>
import App from '@/<%= name %>/<%= name %>.vue'
<% else -%>
import App from '@/<%= name %>.vue'
<% end -%>

describe('<%= name %>.vue', () => {
  it('render hello <%= name %>', () => {
    const message = "Hello <%= name %>!"
    const wrapper = shallowMount(App)
    expect(wrapper.find('#<%= name %>').text()).toBe(message)
  })
})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vueonrails-0.1.0 lib/generators/generator_templates/tests/unit.test.js.erb