Removed mongodb and added a basic demo jasmine spec

This commit is contained in:
Sahat Yalkabov
2013-12-06 20:59:23 -05:00
parent e5b0e27c38
commit 6c17d8e0ce
2 changed files with 10 additions and 9 deletions

10
test/demo.spec.js Normal file
View File

@ -0,0 +1,10 @@
var request = require('request');
describe("Demo", function() {
it("should return 200 OK", function(done) {
request("http://localhost:3000", function(error, response, body){
expect(response.statusCode).toEqual(200);
done();
});
});
});

View File

@ -1,9 +0,0 @@
describe("MongoDB", function() {
it("is there a server running", function(next) {
var mongoose = require('mongoose');
mongoose.connect('localhost', function(err) {
expect(err).toBe(null);
next();
});
});
});