We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8a964 commit c54e4c9Copy full SHA for c54e4c9
tests/misc.js
@@ -50,7 +50,7 @@ describe('merge tests', () => {
50
51
describe('createNodeMap', () => {
52
const doc = {'@id': 'ex:1', 'a:property': [{'@id': 'ex:2'}]};
53
- it('should create a flattened node hashmap', async () => {
+ it('should create a flattened node hashmap', () => {
54
const expected = {
55
"ex:1": {
56
"@id": "ex:1",
@@ -59,8 +59,9 @@ describe('createNodeMap', () => {
59
"ex:2": {"@id": "ex:2"}
60
};
61
62
- const map = await jsonld.createNodeMap(doc);
63
- assert.deepEqual(map, expected);
+ return jsonld.createNodeMap(doc).then(map => {
+ assert.deepEqual(map, expected);
64
+ });
65
});
66
67
0 commit comments