test: Fix integration test
This commit is contained in:
committed by
Benedikt Rötsch
parent
1320407832
commit
79df6d190d
@@ -22,7 +22,7 @@ describe('courses', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('it should render a lesson', () => {
|
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)
|
.expect(200)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
expect(response.text.match(/class="lesson__title"/)).toBeTruthy()
|
expect(response.text.match(/class="lesson__title"/)).toBeTruthy()
|
||||||
|
|||||||
Reference in New Issue
Block a user