Skip to content
Browse files

Added a couple of tests.

  • Loading branch information...
1 parent e7a37bc commit 680f3b84d96d674091b88b96c7f2e2b536de1b1c @mcantelon committed Dec 29, 2010
Showing with 18 additions and 0 deletions.
  1. +3 −0 README
  2. +15 −0 test/calais.test.js
View
3 README
@@ -17,6 +17,9 @@ Usage:
Example:
# node example.js
+Test:
+# expresso test/calais.test.js
+
Tested with node.js v0.3.0
(c) 2010 Mike Cantelon, MIT license
View
15 test/calais.test.js
@@ -0,0 +1,15 @@
+var Calais = require('calais').Calais,
+ assert = require('assert'),
+ should = require('should')
+
+module.exports = {
+ 'test api key setting': function() {
+ var calais = new Calais('some_api_key')
+ calais.api_key.should.equal('some_api_key')
+ },
+
+ 'test option setting': function() {
+ var calais = new Calais('some_api_key', {'cleanResult': false})
+ calais.options.cleanResult.should.equal(false)
+ },
+}

0 comments on commit 680f3b8

Please sign in to comment.
Something went wrong with that request. Please try again.