--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/unittests/tests/JSONSerializer.js Wed Oct 12 11:54:26 2011 +0200
@@ -0,0 +1,16 @@
+function test_JSONSerializer() {
+ module("JSON Serializer tests",
+ { setup: function() {
+ this.dt = new IriSP.DataLoader();
+ }
+ }
+ );
+
+ test("should return the correct JSON", function() {
+ var arr = ["ab", {"de" : "fg"}, "lp"];
+ var serializer = new IriSP.JSONSerializer(this.dt);
+
+ equal(serializer.serialize(arr), JSON.stringify(arr), "assert that the outputted json is correct");
+ });
+
+};
\ No newline at end of file