Skip to content

Commit 2c3d835

Browse files
committed
Resolve expandContext option relative to manifest.
1 parent 284c473 commit 2c3d835

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test-common.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,12 @@ function addTest(manifest, test, tests) {
543543
});
544544
}
545545

546+
// Make expandContext absolute to the manifest
547+
if(test.hasOwnProperty('option') && test.option.expandContext) {
548+
test.option.expandContext =
549+
prependBase(test.manifest.baseIri, test.option.expandContext);
550+
}
551+
546552
const testOptions = getJsonLdValues(test, 'option');
547553

548554
testOptions.forEach(function(opt) {

0 commit comments

Comments
 (0)