Commit 3faa7de4 authored by Mike Lynch's avatar Mike Lynch
Browse files

Merge branch 'master' into feature-mrl-tidy

parents 35656203 b66e4c13
......@@ -80,8 +80,10 @@ describe("JSON-LD helper simple tests", function () {
assert.equal(helper2.get_uri_for_term("foaf:name"), "http://xmlns.com/foaf/0.1/name")
assert.equal(helper2.get_uri_for_term("picture"), "http://xmlns.com/foaf/0.1/depiction")
assert.equal(helper2.get_uri_for_term("foaf:homepage"), "http://xmlns.com/foaf/0.1/homepage")
assert.equal(helper2.get_uri_for_term("foaf:Person"), "http://xmlns.com/foaf/0.1/Person")
helper2.trim_context()
assert.equal(Object.keys(helper2.json_ld["@context"]).length, 3)
assert.equal(Object.keys(helper2.json_ld["@context"]).length, 4)
// Try with a real CATALOG
......@@ -91,8 +93,7 @@ describe("JSON-LD helper simple tests", function () {
assert.equal(helper3.get_uri_for_term("Person"), "http://schema.org/Person")
assert.equal(helper3.get_uri_for_term("Project"), "http://purl.org/cerif/frapo/Project")
helper3.trim_context()
assert.equal(Object.keys(helper3.json_ld["@context"]).length, 22)
assert.equal(Object.keys(helper3.json_ld["@context"]).length, 29)
done();
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment