mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-26 22:31:08 +00:00
21 lines
No EOL
389 B
JavaScript
21 lines
No EOL
389 B
JavaScript
"use strict";
|
|
|
|
var helper = require("./helpers/index.js");
|
|
var request = require("supertest");
|
|
var app = helper.app;
|
|
|
|
describe("Basic Spec", function () {
|
|
it ("serves main page", function (done) {
|
|
request(app)
|
|
.get("/")
|
|
.expect(200)
|
|
.end(done);
|
|
});
|
|
|
|
it ("returns 404 if page not found", function (done) {
|
|
request(app)
|
|
.get("/foo")
|
|
.expect(404)
|
|
.end(done);
|
|
});
|
|
}); |