aboutsummaryrefslogtreecommitdiffstats
path: root/src/nodejs/tests
diff options
context:
space:
mode:
authorslomo <steve.harrison@gmx.net>2011-01-28 22:10:43 +0100
committerslomo <steve.harrison@gmx.net>2011-01-28 22:10:43 +0100
commitdd8415cc058f943d17712a2a5230d78578cb8485 (patch)
treedd83305126e75c1f8dd0daed2aceb939df568e39 /src/nodejs/tests
parent19a62867dda0885453c639e0efefd450721cfa72 (diff)
downloadosm-xapi-dd8415cc058f943d17712a2a5230d78578cb8485.tar.gz
osm-xapi-dd8415cc058f943d17712a2a5230d78578cb8485.tar.xz
osm-xapi-dd8415cc058f943d17712a2a5230d78578cb8485.zip
fixed parsing
Diffstat (limited to '')
-rw-r--r--src/nodejs/tests/pathparsing.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nodejs/tests/pathparsing.js b/src/nodejs/tests/pathparsing.js
index e1a20f5..ebd5baf 100644
--- a/src/nodejs/tests/pathparsing.js
+++ b/src/nodejs/tests/pathparsing.js
@@ -54,7 +54,7 @@ module.exports =
test.ok(true);
var simpleRelationStringTrail = "/relation/";
var expected = { object: "relation" };
- assert.deepEqual(toTest(simpleRelationStringTrail), expectedi);
+ assert.deepEqual(toTest(simpleRelationStringTrail), expected);
test.finish();
}
@@ -78,20 +78,20 @@ module.exports =
, 'tag with two values': function(test) {
test.ok(true);
var nodeWithTwoValues = "/node[tag=foo|bar]";
- var expected = { object: "node", tag: { key:["key"], value:["foo", "bar"]}};
+ var expected = { object: "node", tag: { key:["tag"], value:["foo", "bar"]}};
assert.deepEqual(toTest(nodeWithTwoValues), expected);
test.finish();
}
, 'tag with two keys': function(test) {
test.ok(true);
- var nodeWithTwoKeys = "/node[foo,bar=value]";
+ var nodeWithTwoKeys = "/node[foo|bar=value]";
var expected = { object: "node", tag: { key:["foo", "bar"], value:["value"]}};
assert.deepEqual(toTest(nodeWithTwoKeys), expected);
test.finish();
}
, 'tags with cross product': function(test) {
test.ok(true);
- var tagCrossProduct = "/node[key1,key2=value1,value2]";
+ var tagCrossProduct = "/node[key1|key2=value1|value2]";
var expected = { object: "node", tag: {key:["key1", "key2"], value:["value1", "value2"]}};
assert.deepEqual(toTest(tagCrossProduct), expected);
test.finish();