amida-tech / greyscale

Indaba - Turn knowledge into data :earth_africa: :earth_asia: :earth_americas:
http://indaba.amida-tech.com
Other
8 stars 4 forks source link

refactored Common.js request #506

Closed morleegan closed 5 years ago

morleegan commented 5 years ago

If this PR fixes a bug, you must add test cases representative of the bug.

Please refer to Tettra for PR review guidelines.

What does this PR do?

refactors a request code into it's own function.

Related JIRA tickets:

indaba-739

Did the user.integration, discussion.integration and task.integration tests pass? Test can be run with:

node_modules/.bin/mocha test/user.integration.js test/discussion.integration.js test/task.integration.js --bail -t 10000

How should this be manually tested?

check that you can still create and edit a survey.

Background/Context

Screenshots (if appropriate):