-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed134e7
commit 6479e3c
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>diy.js test suite</title> | ||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/mocha/1.21.5/mocha.css" /> | ||
</head> | ||
<body> | ||
<div id="mocha"></div> | ||
<script src="/js/diy.js"></script> | ||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mocha/1.21.5/mocha.js"></script> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/chai/1.9.2/chai.js"></script> | ||
<script> | ||
mocha.ui('bdd'); | ||
mocha.reporter('html'); | ||
var expect = chai.expect; | ||
</script> | ||
<script src="test.js"></script> | ||
<script> | ||
mocha.run(); | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
describe('$', function() { | ||
it('should be equal to document', function(){ | ||
expect($).to.equal(document) | ||
}); | ||
}); |