diff --git a/test/rdfa.js b/test/rdfa.js index f89fda1..b5b9c45 100644 --- a/test/rdfa.js +++ b/test/rdfa.js @@ -1,8 +1,8 @@ var jQuery = require('jquery'); var VIE = require('../vie.js'); -// Until https://github.com/tmpvar/jsdom/issues/issue/81 is fixed -VIE.RDFa.predicateSelector = '[property]'; +// Until https://github.com/tmpvar/jsdom/issues/issue/81 is fixed you need to uncomment the following: +//VIE.RDFa.predicateSelector = '[property]'; exports['test inheriting subject'] = function(test) { var html = jQuery('
Albert Einstein1879-03-14
Federal Republic of Germany
'); @@ -12,6 +12,7 @@ exports['test inheriting subject'] = function(test) { test.equal(jsonldEntities[1]['foaf:name'], 'Albert Einstein'); test.equal(jsonldEntities[0]['dbp:conventionalLongName'], 'Federal Republic of Germany'); + test.equals(jsonldEntities[1]['dbp:birthPlace'], '<' + jsonldEntities[0]['@'] + '>', "Check that the relation between the person and the birthplace was read correctly"); var backboneEntities = VIE.RDFaEntities.getInstances(html); test.equal(backboneEntities.length, 2, "This RDFa defines two entities but they don't get to Backbone");