Skip to content

Instantly share code, notes, and snippets.

@kuroski
kuroski / homestead_extras.sh
Last active October 1, 2024 19:24 — forked from rufhausen/homestead_extras.sh
Script for the installation of MSSQL in Laravel Homestead (read the comments)
#!/bin/bash
#Install Laravel Homestead (http://laravel.com/docs/5.0/homestead)
#ssh into Homestead "homestead ssh"
#Run the script using "sudo bash homestead_extras.sh"
#Leave all the default options sugested during the installation, and do not modify any files!!
apt-get update
#Additional Packages
apt-get install -y php5-ldap php5-mssql
import { shallowMount } from '@vue/test-utils'
import UserView from '@/views/UserView'
describe('UserView', () => {
it('renders the component', () => {
// arrange
const wrapper = shallowMount(UserView)
// assert
expect(wrapper.html()).toMatchSnapshot()
<script>
export default {
name: 'UserView'
}
</script>
<template>
<div>
UserView
</div>
<script>
export default {
name: 'UserView'
}
</script>
<template>
<div>
Hello World
</div>
import { shallowMount } from '@vue/test-utils'
import UserView from '@/views/UserView'
import VUserSearchForm from '@/components/VUserSearchForm'
import VUserProfile from '@/components/VUserProfile'
describe('UserView', () => {
it('renders the component', () => {
// arrange
const wrapper = shallowMount(UserView)
<script>
export default {
name: 'UserProfile'
}
</script>
<template>
<div>
UserProfile
</div>
<script>
export default {
name: 'UserSearchForm'
}
</script>
<template>
<div>
UserSearchForm
</div>
<script>
import VUserSearchForm from '@/components/VUserSearchForm'
import VUserProfile from '@/components/VUserProfile'
export default {
name: 'UserView',
components: {
VUserSearchForm,
VUserProfile,
}
import { shallowMount } from '@vue/test-utils'
import UserView from '@/views/UserView'
import VUserSearchForm from '@/components/VUserSearchForm'
import VUserProfile from '@/components/VUserProfile'
describe('UserView', () => {
const build = () => {
const wrapper = shallowMount(UserView)
return {
import { shallowMount } from '@vue/test-utils'
import UserView from '@/views/UserView'
import VUserSearchForm from '@/components/VUserSearchForm'
import VUserProfile from '@/components/VUserProfile'
describe('UserView', () => {
const build = () => {
const wrapper = shallowMount(UserView, {
data: () => ({
user: {}