test(integration): add rudimentary test for settings
This commit is contained in:
committed by
Benedikt Rötsch
parent
4b6b355790
commit
a5a23b4ea9
12
test/integration/settings.test.js
Normal file
12
test/integration/settings.test.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
const app = require('../../app')
|
||||||
|
const request = require('supertest')
|
||||||
|
|
||||||
|
describe('settings', () => {
|
||||||
|
test('it should render the settings page', () => {
|
||||||
|
return request(app).get('/settings')
|
||||||
|
.expect(200)
|
||||||
|
.then((response) => {
|
||||||
|
expect(response.text.match(/Connected to space “.+”/)).toBeTruthy()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user