Skip to content

Instantly share code, notes, and snippets.

View alecgerona's full-sized avatar

Alexandre Gerona alecgerona

View GitHub Profile
@syuji-higa
syuji-higa / asyncData.spec.js
Last active October 12, 2021 15:27
Jest - Vue.js snipets
import { shallowMount } from '@vue/test-utils'
import Component from './Component.vue'
describe('Component', () => {
const wrapper = shallowMount(Component)
const data = wrapper.vm.$options.asyncData()
wrapper.setData(data)
it('should be shown "test" text', () => {
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a