Skip to content

Commit c54e4c9

Browse files
committed
Use promises directly.
Avoid async/await so tests can run in node 6.
1 parent af8a964 commit c54e4c9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/misc.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('merge tests', () => {
5050

5151
describe('createNodeMap', () => {
5252
const doc = {'@id': 'ex:1', 'a:property': [{'@id': 'ex:2'}]};
53-
it('should create a flattened node hashmap', async () => {
53+
it('should create a flattened node hashmap', () => {
5454
const expected = {
5555
"ex:1": {
5656
"@id": "ex:1",
@@ -59,8 +59,9 @@ describe('createNodeMap', () => {
5959
"ex:2": {"@id": "ex:2"}
6060
};
6161

62-
const map = await jsonld.createNodeMap(doc);
63-
assert.deepEqual(map, expected);
62+
return jsonld.createNodeMap(doc).then(map => {
63+
assert.deepEqual(map, expected);
64+
});
6465
});
6566
});
6667

0 commit comments

Comments
 (0)