diff --git a/tests/staff/get-all.rb b/tests/staff/get-all.rb index 5ba054cb..dec7fdc5 100644 --- a/tests/staff/get-all.rb +++ b/tests/staff/get-all.rb @@ -14,10 +14,10 @@ describe'/staff/get-all' do (result['data'][0]['email']).should.equal('staff@opensupports.com') (result['data'][0]['profilePic']).should.equal('') (result['data'][0]['level']).should.equal('3') - (result['data'][0]['departments'][0]['id']).should.equal('1') - (result['data'][0]['departments'][0]['name']).should.equal('Help and Support') - (result['data'][0]['departments'][1]['id']).should.equal('2') - (result['data'][0]['departments'][1]['name']).should.equal('useless private deapartment') + (result['data'][0]['departments'][0]['id']).should.equal('2') + (result['data'][0]['departments'][0]['name']).should.equal('useless private deapartment') + (result['data'][0]['departments'][1]['id']).should.equal('1') + (result['data'][0]['departments'][1]['name']).should.equal('Help and Support') (result['data'][0]['departments'][2]['id']).should.equal('3') (result['data'][0]['departments'][2]['name']).should.equal('Suggestions') (result['data'][0]['assignedTickets']).should.equal(10)