javascript/syncbase: change js test to use "Type(v)" like idiom.
Change test to use the:
Type(v) like "%.<short-type-name>"
Support for Type(v) = "<short-type_name>"
is being removed. As such, the string
comparison will work like all other string
comparisons in query language expressions.
Changing this to have a different branch name than "type_idiom" as
a multi-part submission is not needed and; furthermore, seems to
be in a bad state.
Change-Id: Ia85c8335523af21799c3ce0fe3b57f435a91a078
diff --git a/test/integration/test-database.js b/test/integration/test-database.js
index 0182bfb..437caaa 100644
--- a/test/integration/test-database.js
+++ b/test/integration/test-database.js
@@ -464,7 +464,7 @@
]
},
{
- q: 'select k, v.First from %s where Type(v) = "personType"',
+ q: 'select k, v.First from %s where Type(v) like "%.personType"',
want: [
['k', 'v.First'],
['Homer', homer.first],
@@ -474,7 +474,7 @@
]
},
{
- q: 'select k, v.Population from %s where Type(v) = "cityType"',
+ q: 'select k, v.Population from %s where Type(v) like "%.cityType"',
want: [
['k', 'v.Population'],
['Shelbyville', shelbyville.population],