test(integration): fix course urls to make integration tests work again

This commit is contained in:
Benedikt Rötsch
2017-10-25 14:42:17 +02:00
committed by Benedikt Rötsch
parent 9c5b0eaacc
commit 4b6b355790

View File

@@ -11,7 +11,7 @@ describe('courses', () => {
}) })
}) })
test('it should render a course', () => { test('it should render a course', () => {
return request(app).get('/courses/headless-content-management-using-contentful') return request(app).get('/courses/hello-world')
.expect(200) .expect(200)
.then((response) => { .then((response) => {
expect(response.text.match(/class="course__title"/)).toBeTruthy() expect(response.text.match(/class="course__title"/)).toBeTruthy()
@@ -22,7 +22,7 @@ describe('courses', () => {
}) })
test('it should render a lesson', () => { test('it should render a lesson', () => {
return request(app).get('/courses/headless-content-management-using-contentful/lessons/content-from-your-idea-to-any-display') return request(app).get('/courses/hello-world/lessons/architecture-basics')
.expect(200) .expect(200)
.then((response) => { .then((response) => {
expect(response.text.match(/class="lesson__title"/)).toBeTruthy() expect(response.text.match(/class="lesson__title"/)).toBeTruthy()