Skip to content

Instantly share code, notes, and snippets.

@rafamaciel
Created October 16, 2014 15:07
Show Gist options
  • Save rafamaciel/82482121c090909998a9 to your computer and use it in GitHub Desktop.
Save rafamaciel/82482121c090909998a9 to your computer and use it in GitHub Desktop.
Snippet para gerar arquivo base para os testes
<snippet>
<content><![CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Test Runner</title>
<!-- ADICIONA O JASMINE -->
<script type="text/javascript" src="$1/web/vendor/bower/jasmine/lib/jasmine-2.0.2/jasmine.js"></script>
<script type="text/javascript" src="$1/web/vendor/bower/jasmine/lib/jasmine-2.0.2/jasmine-html.js"></script>
<script type="text/javascript" src="$1/web/vendor/bower/jasmine/lib/jasmine-2.0.2/boot.js"></script>
<script type="text/javascript" src="$1/web/vendor/bower/jasmine/lib/jasmine-2.0.2/console-runner.js"></script>
<link rel="stylesheet" type="text/css" href="$1/web/vendor/bower/jasmine/lib/jasmine-2.0.2/jasmine.css">
<!-- ADICIONA ANGULARJS -->
<script type="text/javascript" src="$1/web/vendor/bower/angular/angular.js"></script
<script type="text/javascript" src="$1/web/vendor/bower/angular-mocks/angular-mocks.js"></script>
<!-- ADICIONE AQUI SUAS DEPENDENCIAS (EX: jquery) -->
<!-- ADICIONE AQUI O SCRIPT QUE SERÁ TESTADO (EX: meuScript.js)-->
<!-- ADICIONE AQUI O TESTE DO ARQUIVO (EX: meuScriptSpec.js)-->
</head>
<body>
</body>
</html>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>Base para os testes</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment