Skip to content

Instantly share code, notes, and snippets.

@mattd
Created December 18, 2012 17:35
Show Gist options
  • Save mattd/4330092 to your computer and use it in GitHub Desktop.
Save mattd/4330092 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<script data-main="./app/scripts/config.js" src="./app/scripts/lib/require.js"></script>
<link rel="stylesheet" type="text/css" href="./node_modules/grunt-contrib-jasmine/vendor/jasmine-1.3.0/jasmine.css">
<script src="./node_modules/grunt-contrib-jasmine/vendor/jasmine-1.3.0/jasmine.js"></script>
<script src="./node_modules/grunt-contrib-jasmine/vendor/jasmine-1.3.0/jasmine-html.js"></script>
<script>
require([
'main' ,
'app' ,
'collections/client/tab' ,
'controllers/index' ,
'controllers/login' ,
'models/api/base' ,
'models/api/session' ,
'models/api/user' ,
'models/client/tab' ,
'modules/login' ,
'modules/main' ,
'nls/colors' ,
'nls/fr-fr/colors' ,
'routers/index' ,
'routers/login' ,
'templates' ,
'templates/helpers' ,
'vent' ,
'views/layouts/index' ,
'views/layouts/login' ,
'views/login/form' ,
'views/tab/collection' ,
'views/tab/model' ,
'views/user/model'
],
function(){
require(['./test/spec/controllers/index.js','./test/spec/models/base.js','./test/spec/models/user.js','./node_modules/grunt-contrib-jasmine/tasks/jasmine/reporters/PhantomReporter.js'], function(){
require(['./node_modules/grunt-contrib-jasmine/tasks/jasmine/jasmine-helper.js'], function(){
// good to go! Our tests should already be running.
})
})
}
)
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment