@@ -260,13 +260,13 @@ QUnit.test("_get_select_with_path ", function (assert) {
...
@@ -260,13 +260,13 @@ QUnit.test("_get_select_with_path ", function (assert) {
assert.throws(()=>caosdb_map._get_select_with_path(this.datamodel,[]),/Supply at least a RecordType./,"missing value");
assert.throws(()=>caosdb_map._get_select_with_path(this.datamodel,[]),/Supply at least a RecordType./,"missing value");
assert.equal(caosdb_map._get_select_with_path(
assert.equal(caosdb_map._get_select_with_path(
this.datamodel,
this.datamodel,
["RealRT"]),"SELECT latitude,longitude FROM ENTITY RealRT WITH latitude AND longitude ","RT only");
["RealRT"]),"SELECT parent,latitude,longitude FROM ENTITY RealRT WITH latitude AND longitude ","RT only");
assert.equal(caosdb_map._get_select_with_path(
assert.equal(caosdb_map._get_select_with_path(
this.datamodel,
this.datamodel,
["RealRT","prop1"]),"SELECT prop1.latitude,prop1.longitude FROM ENTITY RealRT WITH prop1 WITH latitude AND longitude ","RT with one prop");
["RealRT","prop1"]),"SELECT parent,prop1.latitude,prop1.longitude FROM ENTITY RealRT WITH prop1 WITH latitude AND longitude ","RT with one prop");
assert.equal(caosdb_map._get_select_with_path(
assert.equal(caosdb_map._get_select_with_path(
this.datamodel,
this.datamodel,
["RealRT","prop1","prop2"]),"SELECT prop1.prop2.latitude,prop1.prop2.longitude FROM ENTITY RealRT WITH prop1 WITH prop2 WITH latitude AND longitude ","RT with two props");
["RealRT","prop1","prop2"]),"SELECT parent,prop1.prop2.latitude,prop1.prop2.longitude FROM ENTITY RealRT WITH prop1 WITH prop2 WITH latitude AND longitude ","RT with two props");