2016-08-20 23:33:47 +02:00
|
|
|
describe '/system/get-settings' do
|
|
|
|
it 'should return correct values' do
|
|
|
|
result = request('/system/get-settings')
|
|
|
|
|
|
|
|
(result['status']).should.equal('success')
|
|
|
|
(result['data']['language']).should.equal('en')
|
2017-03-15 20:17:06 +01:00
|
|
|
(result['data']['departments'][0]['name']).should.equal('Help and Support')
|
2016-12-21 05:09:35 +01:00
|
|
|
(result['data']['allowedLanguages'][0]).should.equal('en')
|
|
|
|
(result['data']['allowedLanguages'][1]).should.equal('es')
|
|
|
|
(result['data']['allowedLanguages'][2]).should.equal('de')
|
|
|
|
(result['data']['allowedLanguages'][3]).should.equal('fr')
|
2017-01-10 21:07:49 +01:00
|
|
|
(result['data']['allowedLanguages'][4]).should.equal('pt')
|
2016-12-21 05:09:35 +01:00
|
|
|
(result['data']['allowedLanguages'][5]).should.equal('jp')
|
|
|
|
(result['data']['allowedLanguages'][6]).should.equal('ru')
|
|
|
|
(result['data']['allowedLanguages'][7]).should.equal('cn')
|
|
|
|
(result['data']['allowedLanguages'][8]).should.equal('in')
|
|
|
|
(result['data']['allowedLanguages'][9]).should.equal('tr')
|
|
|
|
(result['data']['supportedLanguages'][0]).should.equal('en')
|
2016-08-20 23:33:47 +02:00
|
|
|
end
|
|
|
|
end
|