mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Enable stricter test linting
This commit is contained in:
@@ -48,7 +48,7 @@ describe('BasicRepresentation', (): void => {
|
||||
const data = [ 'my', 'data' ];
|
||||
const metadata = new RepresentationMetadata();
|
||||
const representation = new BasicRepresentation(data, metadata);
|
||||
expect(await arrayifyStream(representation.data)).toEqual(data);
|
||||
await expect(arrayifyStream(representation.data)).resolves.toEqual(data);
|
||||
expect(representation.metadata).toBe(metadata);
|
||||
expect(representation.binary).toBe(true);
|
||||
});
|
||||
@@ -57,7 +57,7 @@ describe('BasicRepresentation', (): void => {
|
||||
const data = 'my data';
|
||||
const metadata = new RepresentationMetadata();
|
||||
const representation = new BasicRepresentation(data, metadata);
|
||||
expect(await arrayifyStream(representation.data)).toEqual([ data ]);
|
||||
await expect(arrayifyStream(representation.data)).resolves.toEqual([ data ]);
|
||||
expect(representation.metadata).toBe(metadata);
|
||||
expect(representation.binary).toBe(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user