Skip to content

Commit

Permalink
install chai.Should, uninstall should; all tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardwerdna committed Apr 6, 2013
1 parent 56f0f6b commit ce94d5e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@
},
"author": "Andrew C. Greenberg (wizardwerdna@gmail.com)",
"license": "BSD",
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"should": "~1.2.2",
"mocha": "~1.8.2",
"promises-aplus-tests": "promises-aplus/promises-tests#spec-1.1",
"coffee-script": "~1.6.1",
"jslint": "~0.1.9",
"uglify-js": "~2.2.5",
"coffeeify": "~0.3.0",
"browserify": "~2.11.0"
"browserify": "~2.11.0",
"chai": "~1.5.0"
},
"keywords": [
"promise",
Expand Down
3 changes: 2 additions & 1 deletion test/covenant.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
should = require 'should'
should = require('chai').Should()

{Covenant, enqueue} = require('../covenant')

# test scaffolding
Expand Down
22 changes: 22 additions & 0 deletions test/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<html>
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<!-- <script src="jquery.js"></script> -->
<script src="../node_modules/mocha/mocha.js"></script>
<script src="../node_modules/should/lib/should.js"></script>
<script>mocha.setup('bdd')</script>
<!-- <script src="test.array.js"></script> -->
<!-- <script src="test.object.js"></script> -->
<!-- <script src="test.xhr.js"></script> -->
<script>
mocha.checkLeaks();
mocha.globals(['jQuery']);
mocha.run();
</script>
</body>
</html>
4 changes: 3 additions & 1 deletion test/promise.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
should = require 'should'
should = require('chai').Should()

{Promise} = require('../promise')
{enqueue} = require('../covenant')

# test scaffold
p = p1 = p2 = p3 = returnPromise = callback = null
dummy = {dummy: 'dummy'}
Expand Down

0 comments on commit ce94d5e

Please sign in to comment.