summaryrefslogtreecommitdiffstats
path: root/tests/auto/partition/json/map-array-conversion.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/partition/json/map-array-conversion.json')
-rw-r--r--tests/auto/partition/json/map-array-conversion.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/partition/json/map-array-conversion.json b/tests/auto/partition/json/map-array-conversion.json
new file mode 100644
index 00000000..b51aab00
--- /dev/null
+++ b/tests/auto/partition/json/map-array-conversion.json
@@ -0,0 +1,17 @@
+[
+{
+ "_type": "_schemaType",
+ "name": "com.test.TestView",
+ "schema": {
+ "type": "object",
+ "extends": {"$ref": "View" }
+ }
+},
+{
+ "_type": "Map",
+ "targetType": "com.test.TestView",
+ "map": {
+ "com.test.Test": "function(test) { jsondb.emit({result: [10, true, \"hello\",null]}) }"
+ }
+}
+]