@@ -58,7 +58,7 @@ describe('<%= classedName %> API:', function() {
5858
5959 beforeEach ( function ( done ) {
6060 request ( app )
61- . get ( ' <%= route %>/' + new < %= classedName % > ._id)
61+ . get ( ` <%= route %>/${ new < %= classedName % > ._id} ` )
6262 .expect(200)
6363 .expect('Content-Type', /json/)
6464 .end((err, res) => {
@@ -85,7 +85,7 @@ describe('<%= classedName %> API:', function() {
8585
8686 beforeEach(function(done) {
8787 request(app)
88- . put ( ' <%= route %>/' + new < %= classedName % > ._id)
88+ .put(` < %= route % > / $ { new<% = c l a s s e d N a m e % > ._ i d } ` )
8989 . send ( {
9090 name : 'Updated <%= classedName %>' ,
9191 info : 'This is the updated <%= cameledName %>!!!'
@@ -112,15 +112,15 @@ describe('<%= classedName %> API:', function() {
112112
113113 it('should respond with the updated <%= cameledName %> on a subsequent GET', function(done) {
114114 request(app)
115- . get ( ' <%= route %>/' + new < %= classedName % > ._id)
115+ .get(` < %= route % > / $ { new<% = c l a s s e d N a m e % > ._ i d } ` )
116116 . expect ( 200 )
117117 . expect ( 'Content-Type' , / j s o n / )
118118 . end ( ( err , res ) => {
119119 if ( err ) {
120120 return done ( err ) ;
121121 }
122122 let < %= cameledName % > = res . body ;
123-
123+
124124 < %= expect ( ) % > < %= cameledName % > .name< %= to ( ) % > . equal ( 'Updated <%= classedName %>' ) ;
125125 < %= expect ( ) % > < %= cameledName % > .info< %= to ( ) % > . equal ( 'This is the updated <%= cameledName %>!!!' ) ;
126126
@@ -134,10 +134,10 @@ describe('<%= classedName %> API:', function() {
134134
135135 beforeEach ( function ( done ) {
136136 request ( app )
137- . patch ( ' <%= route %>/' + new < %= classedName % > ._id)
137+ . patch ( ` <%= route %>/${ new < %= classedName % > ._id} ` )
138138 .send([
139- { "op" : " replace" , " path" : " /name" , value : 'Patched <%= classedName %>' } ,
140- { "op" : " replace" , " path" : " /info" , value : 'This is the patched <%= cameledName %>!!!' }
139+ { op: ' replace', path: ' /name' , value: 'Patched <%= classedName %>' },
140+ { op: ' replace', path: ' /info' , value: 'This is the patched <%= cameledName %>!!!' }
141141 ])
142142 .expect(200)
143143 .expect('Content-Type', /json/)
@@ -163,7 +163,7 @@ describe('<%= classedName %> API:', function() {
163163 describe('DELETE <%= route %>/:id', function() {
164164 it('should respond with 204 on successful removal', function(done) {
165165 request(app)
166- . delete ( ' <%= route %>/' + new < %= classedName % > ._id)
166+ .delete(` < %= route % > / $ { new<% = c l a s s e d N a m e % > ._ i d } ` )
167167 . expect ( 204 )
168168 . end ( err => {
169169 if ( err ) {
@@ -175,7 +175,7 @@ describe('<%= classedName %> API:', function() {
175175
176176 it('should respond with 404 when <%= cameledName %> does not exist', function(done) {
177177 request(app)
178- . delete ( ' <%= route %>/' + new < %= classedName % > ._id)
178+ .delete(` < %= route % > / $ { new<% = c l a s s e d N a m e % > ._ i d } ` )
179179 . expect ( 404 )
180180 . end ( err => {
181181 if ( err ) {
0 commit comments