Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "xpath", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "DOM 3 Xpath implemention and helper for node.js.", | ||
@@ -5,0 +5,0 @@ "engines": { |
12
test.js
@@ -151,3 +151,13 @@ var xpath = require('./xpath.js') | ||
test.done(); | ||
} | ||
}, | ||
'evaluate substring-after': function (test) { | ||
var xml = '<classmate>Hermione</classmate>'; | ||
var doc = new dom().parseFromString(xml); | ||
var part = xpath.select('substring-after(/classmate, "Her")', doc); | ||
assert.deepEqual('mione', part); | ||
test.done(); | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132356
4053