Skip to content

Commit 62c54d8

Browse files
committed
Remove expandContext test runner support.
Test runner should pass through the expandContext option and let code load the resource.
1 parent 73932ee commit 62c54d8

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

tests/test-common.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -552,20 +552,7 @@ function createTestOptions(opts) {
552552
options[key] = opts[key];
553553
}
554554
}
555-
let p = Promise.resolve();
556-
for(const key in options) {
557-
if(key === 'expandContext') {
558-
p = p.then(() => {
559-
return joinPath(test.dirname, options[key]);
560-
}).then(filename => {
561-
return readJson(filename);
562-
}).then(json => {
563-
options[key] = json;
564-
});
565-
}
566-
}
567-
568-
return p.then(() => options);
555+
return options;
569556
};
570557
}
571558

0 commit comments

Comments
 (0)