Removed mongodb and added a basic demo jasmine spec
This commit is contained in:
10
test/demo.spec.js
Normal file
10
test/demo.spec.js
Normal 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();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
@ -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();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
Reference in New Issue
Block a user