glutenfree
Version:
A profiler/loganalyzer for nginx/Cetrea Aw.
42 lines (32 loc) • 2.17 kB
text/coffeescript
should = require("should")
ArgumentGenerator = require("../ArgumentGenerator.js").AG
ag = new ArgumentGenerator("funk314solaris", { genericlistid: { one: "new_one" } })
describe("ArgumentGenerator", () ->
it("should map configured elements", (done) ->
ag.map("GET", "json", "GenericLists", "listdatabyid", "one")
.then(
(url) ->
console.log "url is #{url}"
done()
)
)
#it("should return a url with arguments swapped", (done) ->
# ag.map("GET", "json", "GenericLists", "genericlistdata", "84365/13/Ongoing/OngoingLogisticActivities,Name,SSN,Triage,Specialty,Diagnosis,ResponsiblePersonnel:Organization.RHH-FAME.AKUT:PrimaryContact,CriticalInfo,EncounterNote:NoteType.Default,EncounterNote:NoteType.TreatmentNote,EncounterNote:NoteType.ValuesAndOxygen,EncounterNote:NoteType.Medicin")
# .then(
# (url) ->
# console.log "url is #{url}"
# should.exist(url)
# done()
# )
#)
#it("should return a url with arguments swapped", (done) ->
# ag.map("GET", "json", "GenericLists", "new","%7B%22Organizations%22:[%22Organization.Demo.emergency%22],%22Tasks%22:[%22EncounterActivityTask.PersonnelClinicalActivity.Default.Journal%22],%22GenericListType%22:%22Activity%22,%22States%22:[%22NotBegun%22,%22Ongoing%22],%22DiscreteDayStartBefore%22:0,%22DiscreteDayStartAfter%22:1%7D/Name,Diagnosis,Specialty,Triage,TriageHistory,OngoingLogisticActivities,Start,State,ResponsiblePersonnel:OrganizationOid-%3EOrganization.Demo.emergency:Role-%3EPrimaryContact,Doctor")
# #ag.map("GET", "json", "GenericLists", "new", "{ \"Organizations\": [\"1\",\"2\"], \"Tasks\": [\"3\"], \"BLAM\": [\"4\"] }/OngoingLogisticActivities,Name,SSN,Triage,Specialty,Diagnosis,ResponsiblePersonnel:Organization.RHH-FAME.AKUT:PrimaryContact,CriticalInfo,EncounterNote:NoteType.Default,EncounterNote:NoteType.TreatmentNote,EncounterNote:NoteType.ValuesAndOxygen,EncounterNote:NoteType.Medicin")
# .then(
# (url) ->
# console.log "url is #{url}"
# should.exist(url)
# done()
# )
#)
)