Sha256: 774b9ff41ecea8d60ef1e5012e56f98962dfe381d58e1032f45963c58739b9d9

Contents?: true

Size: 579 Bytes

Versions: 5

Compression:

Stored size: 579 Bytes

Contents

// Generated by Vue on Rails https://github.com/vueonrails/vueonrails 
// Generate a component part with test by running command `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

5 entries across 5 versions & 1 rubygems

Version Path
vueonrails-1.0.0.beta5 lib/generators/templates/tests/index.js.erb
vueonrails-1.0.0.beta3 lib/generators/templates/tests/index.js.erb
vueonrails-1.0.0.beta2 lib/generators/templates/tests/index.js.erb
vueonrails-1.0.0.beta1 lib/generators/templates/tests/index.js.erb
vueonrails-0.3.0 lib/generators/generator_templates/tests/index.js.erb