summaryrefslogtreecommitdiff
path: root/javascript/spec/specHelper.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/spec/specHelper.js')
-rw-r--r--javascript/spec/specHelper.js11
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
}