fix(deps): Update dependencies

This commit is contained in:
Joachim Van Herwegen
2022-02-01 15:00:19 +01:00
parent 52f400d344
commit d2870e5c8b
10 changed files with 5171 additions and 6169 deletions

View File

@@ -209,7 +209,7 @@ describe('A DataAccessorBasedStore', (): void => {
const result = await store.getRepresentation(resourceID);
const contains = result.metadata.getAll(LDP.terms.contains);
expect(contains).toHaveLength(1);
expect(contains[0].value).toEqual(`${resourceID.path}resource`);
expect(contains[0].value).toBe(`${resourceID.path}resource`);
});
});

View File

@@ -96,8 +96,8 @@ describe('An InMemoryDataAccessor', (): void => {
children.push(child);
}
expect(children).toHaveLength(2);
expect(children[0].identifier.value).toEqual(`${base}container/resource`);
expect(children[1].identifier.value).toEqual(`${base}container/container2/`);
expect(children[0].identifier.value).toBe(`${base}container/resource`);
expect(children[1].identifier.value).toBe(`${base}container/container2/`);
});
it('adds stored metadata when requesting document metadata.', async(): Promise<void> => {
@@ -148,7 +148,7 @@ describe('An InMemoryDataAccessor', (): void => {
children.push(child);
}
expect(children).toHaveLength(1);
expect(children[0].identifier.value).toEqual(`${base}container/resource`);
expect(children[0].identifier.value).toBe(`${base}container/resource`);
await expect(accessor.getMetadata({ path: `${base}container/resource` }))
.resolves.toBeInstanceOf(RepresentationMetadata);
@@ -175,7 +175,7 @@ describe('An InMemoryDataAccessor', (): void => {
children.push(child);
}
expect(children).toHaveLength(1);
expect(children[0].identifier.value).toEqual(`${base}resource`);
expect(children[0].identifier.value).toBe(`${base}resource`);
await expect(accessor.getMetadata({ path: `${base}resource` }))
.resolves.toBeInstanceOf(RepresentationMetadata);

View File

@@ -62,7 +62,7 @@ describe('A QuadToRdfConverter', (): void => {
metadata: expect.any(RepresentationMetadata),
});
expect(result.metadata.contentType).toBe('text/turtle');
await expect(readableToString(result.data)).resolves.toEqual(
await expect(readableToString(result.data)).resolves.toBe(
`<http://test.com/s> <http://test.com/p> <http://test.com/o>.
`,
);
@@ -80,7 +80,7 @@ describe('A QuadToRdfConverter', (): void => {
const preferences: RepresentationPreferences = { type: { 'text/turtle': 1 }};
const result = await converter.handle({ identifier, representation, preferences });
expect(result.metadata.contentType).toBe('text/turtle');
await expect(readableToString(result.data)).resolves.toEqual(
await expect(readableToString(result.data)).resolves.toBe(
`@prefix dc: <http://purl.org/dc/terms/>.
@prefix test: <http://test.com/>.
@@ -99,7 +99,7 @@ test:s dc:modified test:o.
const preferences: RepresentationPreferences = { type: { 'text/turtle': 1 }};
const result = await converter.handle({ identifier, representation, preferences });
expect(result.metadata.contentType).toBe('text/turtle');
await expect(readableToString(result.data)).resolves.toEqual(
await expect(readableToString(result.data)).resolves.toBe(
`<> <#abc> <def/ghi>.
`,
);
@@ -120,7 +120,7 @@ test:s dc:modified test:o.
metadata: expect.any(RepresentationMetadata),
});
expect(result.metadata.contentType).toBe('application/ld+json');
await expect(readableToString(result.data)).resolves.toEqual(
await expect(readableToString(result.data)).resolves.toBe(
`[
{
"@id": "http://test.com/s",