Skip to content

Commit 163cacf

Browse files
committed
fix(gen:endpoint): fix endpoint spec not adjusting from route url
fixes #298
1 parent 1703916 commit 163cacf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

endpoint/templates/name.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ var should = require('should');
44
var app = require('../../app');
55
var request = require('supertest');
66

7-
describe('GET /api/<%= name %>s', function() {
7+
describe('GET <%= route %>', function() {
88

99
it('should respond with JSON array', function(done) {
1010
request(app)
11-
.get('/api/<%= name %>s')
11+
.get('<%= route %>')
1212
.expect(200)
1313
.expect('Content-Type', /json/)
1414
.end(function(err, res) {

0 commit comments

Comments
 (0)