Closed OR13 closed 4 years ago
const jsonld = require('jsonld'); const cborld = require('@digitalbazaar/cborld'); import { contexts, resolvedContexts } from '../__fixtures__'; it('can use jsonld.js documentLoader', async () => { const result = await jsonld.documentLoader(contexts.activitystreams); expect(result).toEqual(resolvedContexts.activitystreams); }); it('can use cborld documentLoader', async () => { const result = await cborld.documentLoader(contexts.activitystreams); expect(result.toString()).toEqual(resolvedContexts.activitystreams.document); });
Fixed in 2.0.0.