Skip to content

Commit 07c69c5

Browse files
committed
Use regular API for all tests.
Regular API can handle both promise and callback styles.
1 parent 5f2ccab commit 07c69c5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test-common.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,7 @@ function addTest(manifest, test, tests) {
425425

426426
// resolve test data run
427427
Promise.all(params).then(values => {
428-
// get appropriate API and run test
429-
const api = useCallbacks ? jsonld : jsonld.promises;
430-
const promise = api[fn].apply(api, values);
428+
const promise = jsonld[fn].apply(null, values);
431429

432430
// promise style
433431
if(!useCallbacks) {

0 commit comments

Comments
 (0)