Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nicolaspayot on github.
  • I am npayot (https://keybase.io/npayot) on keybase.
  • I have a public key ASAV9DWE5ubdsLr3bkHxuvytqyrDpDVOdBU2OK8L65GcCgo

To claim this, I am signing this object:

@nicolaspayot
nicolaspayot / HelloComponent.test.js
Last active June 28, 2017 13:24
Util function to render and unit test Vue component with mocked inner components
import { getRenderedComponent } from './test-utils'
import HelloComponent from './HelloComponent.vue'
describe('HelloComponent.vue', () => {
let vm
beforeEach(() => {
const firstName = 'John'
const lastName = 'Doe'
const address = '123 Main St Anytown, USA'

Keybase proof

I hereby claim:

  • I am nicolaspayot on github.
  • I am npayot (https://keybase.io/npayot) on keybase.
  • I have a public key whose fingerprint is 4E7D B014 CE4D A493 1A7A D6A7 4F9E 4EB3 53E9 2C22

To claim this, I am signing this object: