test(integration): add rudimentary test for settings

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

View 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()
})
})
})