diff options
Diffstat (limited to 'javascript/spec/specHelper.js')
-rw-r--r-- | javascript/spec/specHelper.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/javascript/spec/specHelper.js b/javascript/spec/specHelper.js index e923310..5f8071d 100644 --- a/javascript/spec/specHelper.js +++ b/javascript/spec/specHelper.js @@ -7,10 +7,15 @@ var specHelper = (function() { body += content; request.respond(200, header, body); } - - var originalBigInteger = BigInteger; - + + function respondJSON(request, object) { + header = { "Content-Type": "application/json;charset=utf-8" }; + body = JSON.stringify(object); + request.respond(200, header, body); + } + return { + respondJSON: respondJSON, respondXML: respondXML } |