Created
July 10, 2017 22:33
-
-
Save kaidesu/a2cbf061e13114c7367ec067e8e68579 to your computer and use it in GitHub Desktop.
Atom snippets file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.text.html.vue': | |
'Vue Component': | |
'prefix': 'template' | |
'body': """ | |
<template> | |
$1 | |
</template> | |
<script> | |
export default { | |
$2 | |
} | |
</script> | |
""" | |
'.php': | |
'Test Method': | |
'prefix': '@test' | |
'body': """ | |
/** @test */ | |
public function it_$1 | |
{ | |
$2 | |
} | |
""" | |
'*': | |
'Test Class': | |
'prefix': 'testclass', | |
'body': """ | |
<?php | |
namespace Tests\\\\Feature; | |
use Tests\\\\TestCase; | |
use Illuminate\\\\Foundation\\\\Testing\\\\DatabaseMigrations; | |
class $1Test extends TestCase | |
{ | |
use DatabaseMigrations; | |
/** @test */ | |
public function it_$2() | |
{ | |
$3 | |
} | |
} | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment