Skip to content

Commit a6d3b73

Browse files
Update note.test.js
1 parent d2bde61 commit a6d3b73

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/note.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const {
2020
User
2121
} = require('../app/user/user.model');
2222
const {
23-
Note
24-
} = require('../app/note/note.model');
23+
Workout
24+
} = require('../app/workout/workout.model');
2525

2626
const expect = chai.expect; // So we can do "expect" instead of always typing "chai.expect"
2727
chai.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+
});

0 commit comments

Comments
 (0)