Sha256: 0e24b5ad80b74f75a473a49525a97ba44299f39c4997483473840676ac4300d5

Contents?: true

Size: 569 Bytes

Versions: 6

Compression:

Stored size: 569 Bytes

Contents

// Generated by vuejs gem ~> github.com/ytbryan/vuejs 
// To generate another 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

6 entries across 6 versions & 1 rubygems

Version Path
vuejs-1.1.0.beta9 lib/generators/generator_templates/tests/unit.test.js.erb
vuejs-1.1.0.beta8 lib/generators/generator_templates/tests/unit.test.js.erb
vuejs-1.1.0.beta7 lib/generators/generator_templates/tests/unit.test.js.erb
vuejs-1.1.0.beta6 lib/generators/generator_templates/tests/unit.test.js.erb
vuejs-1.1.0.beta5 lib/generators/generator_templates/tests/unit.test.js.erb
vuejs-1.1.0.beta4 lib/generators/generator_templates/tests/unit.test.js.erb