File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ const {
2020 User
2121} = require ( '../app/user/user.model' ) ;
2222const {
23- Note
24- } = require ( '../app/note/note .model' ) ;
23+ Workout
24+ } = require ( '../app/workout/workout .model' ) ;
2525
2626const expect = chai . expect ; // So we can do "expect" instead of always typing "chai.expect"
2727chai . use ( chaiHttp ) ; // implements chai http plugin
@@ -137,11 +137,11 @@ describe('Integration tests for: /api/note', function() {
137137
138138 it ( 'Should return a specific note' , function ( ) {
139139 let foundNote ;
140- return Note . find ( )
140+ return Workout . find ( )
141141 . then ( notes => {
142142 expect ( notes ) . to . be . a ( 'array' ) ;
143143 expect ( notes ) . to . have . lengthOf . at . least ( 1 ) ;
144- foundNote = notes [ 0 ] ;
144+ foundWorkout = workouts [ 0 ] ;
145145
146146 return chai . request ( app )
147147 . get ( `/api/note/${ foundNote . id } ` )
@@ -226,4 +226,4 @@ describe('Integration tests for: /api/note', function() {
226226 content : faker . lorem . paragraphs ( )
227227 } ;
228228 }
229- } ) ;
229+ } ) ;
You can’t perform that action at this time.
0 commit comments