Skip to content

Commit

Permalink
test: removed unnecessary code from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Falx committed Feb 23, 2022
1 parent 7c98baa commit dffc1f8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/unit/storage/DataAccessorBasedStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ describe('A DataAccessorBasedStore', (): void => {
it('throws a 412 if the conditions are not matched.', async(): Promise<void> => {
const resourceID = { path: root };
const conditions = new BasicConditions({ notMatchesETag: [ '*' ]});
representation.metadata.set(RDF.type, DataFactory.namedNode(LDP.Container));
await expect(store.setRepresentation(resourceID, representation, conditions))
.rejects.toThrow(PreconditionFailedHttpError);
});
Expand All @@ -404,7 +403,6 @@ describe('A DataAccessorBasedStore', (): void => {

const resourceID = { path: `${root}` };
representation.metadata.removeAll(RDF.type);
representation.metadata.add(RDF.type, LDP.terms.Container);
representation.metadata.contentType = 'text/turtle';
representation.data = guardedStreamFrom([ `<${root}> a <coolContainer>.` ]);

Expand Down Expand Up @@ -536,7 +534,6 @@ describe('A DataAccessorBasedStore', (): void => {

// Generate based on URI
representation.metadata.removeAll(RDF.type);
representation.metadata.add(RDF.type, LDP.terms.Container);
representation.metadata.contentType = 'internal/quads';
representation.data = guardedStreamFrom(
[ quad(namedNode(`${root}resource/`), namedNode('a'), namedNode('coolContainer')) ],
Expand Down Expand Up @@ -591,7 +588,6 @@ describe('A DataAccessorBasedStore', (): void => {

// Generate based on URI
representation.metadata.removeAll(RDF.type);
representation.metadata.add(RDF.type, LDP.terms.Container);
representation.metadata.contentType = 'text/turtle';
representation.data = guardedStreamFrom([]);
await expect(store.setRepresentation(resourceID, representation)).resolves.toEqual([
Expand Down

0 comments on commit dffc1f8

Please sign in to comment.