A Pen by Gabriel Pittau on CodePen.
Last active
August 29, 2015 14:06
-
-
Save gpittau/f7f7594cb1bc876175f0 to your computer and use it in GitHub Desktop.
A Pen by Gabriel Pittau.
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Tests</title> | |
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/mocha/1.21.4/mocha.css" /> | |
</head> | |
<body style="width:100%;height:100%;"> | |
<div id="mocha"></div> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/chai/1.9.1/chai.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/mocha/1.21.4/mocha.js"></script> | |
<script data-main="script.js" src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.11/require.min.js"></script> | |
</body> | |
</html> |
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
'use strict'; | |
/*** | |
* Application entry point. | |
*/ | |
/*global mocha,chai*/ | |
require.config({ | |
paths: { | |
text: 'https://rawgit.com/millermedeiros/requirejs-plugins/master/src/text', | |
jsonExt: 'https://rawgit.com/gpittau/5d240e60b9da17d785c7/raw/jsonExt' | |
} | |
}); | |
chai.should(); | |
mocha.setup('bdd'); | |
require( | |
['jsonExt!https://rawgit.com/gpittau/dc9fddf00529eb7097d0/raw/test.json'], | |
function(test){ | |
console.log(test); | |
mocha.run(); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment