Skip to content

Commit 7b4c03c

Browse files
author
Giorgio Modoni
committed
advance to rc1!
1 parent f2d495e commit 7b4c03c

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "json-routing",
33
"description": "JSON configurable MVC routing for express 4",
4-
"version": "2.0.0b3",
4+
"version": "2.0.0rc1",
55
"author": "Giorgio Modoni <modogio@gmail.com>",
66
"homepage": "http://gimox.github.io/json-routing",
77
"main": "./build/json-route.js",

test.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
1-
//let app = require(process.cwd() + '/demo/server'); // start server
2-
31
import {routeInfo} from "./demo/server";
4-
52
import * as chai from "chai";
63

74
const chaiHttp = require("chai-http");
85
const should = chai.should();
96
const expect = chai.expect;
10-
117
const URL = "http://localhost:3000";
128

13-
14-
//import {server} from "./demo/server";
15-
169
chai.use(chaiHttp);
1710

1811

19-
//let server = require('../demo/server');
20-
2112
describe('Server is Up: ', () => {
2213
it('Has 13 routes', () => {
2314
routeInfo.length.should.be.eql(13);
@@ -76,6 +67,7 @@ describe('Basic routes: ', () => {
7667

7768
});
7869

70+
7971
describe('Middleware: ', () => {
8072
it('/hasmiddleware GET - as array - has property "mdlw"', (done) => {
8173
chai.request(URL)
@@ -116,6 +108,7 @@ describe('Middleware: ', () => {
116108

117109
});
118110

111+
119112
describe('Controller custom name: ', () => {
120113

121114
it('/customControllerPath GET - has custom controller path', (done) => {
@@ -132,6 +125,7 @@ describe('Controller custom name: ', () => {
132125

133126
});
134127

128+
135129
describe('Global params: ', () => {
136130
it('/other/hasbaseUrl GET - BASEURL has "/other"', (done) => {
137131
chai.request(URL)

0 commit comments

Comments
 (0)