javascript/syncbase: change js test to use Type(v) = "type"
The type being compared is the full classname. The test was working
before (with Type(v) like "%.<type>" because the Type function
was inadvertantly inserting a period when there was not path part
of the type.
EDIT: kick off presubmit
MultiPart: 2/2
Change-Id: I29326c99e84e5b2bdd0119731942337de22d9635
diff --git a/test/integration/test-database.js b/test/integration/test-database.js
index 437caaa..0182bfb 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) like "%.personType"',
+ q: 'select k, v.First from %s where Type(v) = "personType"',
want: [
['k', 'v.First'],
['Homer', homer.first],
@@ -474,7 +474,7 @@
]
},
{
- q: 'select k, v.Population from %s where Type(v) like "%.cityType"',
+ q: 'select k, v.Population from %s where Type(v) = "cityType"',
want: [
['k', 'v.Population'],
['Shelbyville', shelbyville.population],