test: Fix integration test

This commit is contained in:
Khaled Garbaya
2017-11-08 10:41:12 +01:00
parent 1320407832
commit d5ac23e3db

View File

@@ -22,7 +22,7 @@ describe('courses', () => {
})
test('it should render a lesson', () => {
return request(app).get('/courses/hello-world/lessons/architecture-basics')
return request(app).get('/courses/hello-world/lessons/architecture')
.expect(200)
.then((response) => {
expect(response.text.match(/class="lesson__title"/)).toBeTruthy()