Skip to content

Commit

Permalink
Started setup for real tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 15, 2010
1 parent 69f7b5c commit 1e37625
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
test.js
test.js
auth
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

test:
@./support/expresso/bin/expresso test/*.test.js \
--serial \
-I lib

.PHONY: test
1 change: 1 addition & 0 deletions test/fixtures/user.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"tj"}
15 changes: 14 additions & 1 deletion test/ns3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
* Module dependencies.
*/

var ns3 = require('ns3');
var ns3 = require('ns3')
, fs = require('fs');

try {
var auth = JSON.parse(fs.readFileSync('auth', 'ascii'));
} catch (err) {
console.error('`make test` requires ./auth to contain a JSON string with');
console.error('`key, secret, and bucket in order to run tests.');
process.exit(1);
}

module.exports = {
'test .version': function(assert){
Expand Down Expand Up @@ -47,5 +56,9 @@ module.exports = {
assert.equal('baz', client.secret);
assert.equal('misc', client.bucket);
assert.equal('s3.amazonaws.com', client.host);
},

'test PUT': function(assert){

}
};

0 comments on commit 1e37625

Please sign in to comment.