@@ -71,9 +71,6 @@ const env = getNodeTestingEnvironment();
7171
7272const TEST_SLUG = "solid-client-test-e2e-resource" ;
7373
74- const nodeVersion = process . versions . node . split ( "." ) ;
75- const nodeMajor = Number ( nodeVersion [ 0 ] ) ;
76-
7774describe ( "Authenticated end-to-end" , ( ) => {
7875 let fetchOptions : { fetch : typeof fetch } ;
7976 let session : Session ;
@@ -201,35 +198,28 @@ describe("Authenticated end-to-end", () => {
201198 await deleteFile ( fileUrl , fetchOptions ) ;
202199 } ) ;
203200
204- // Cannot use file constructor in Node 18 and below
205- ( nodeMajor > 18 ? it : it . skip ) (
206- "can create, delete, and differentiate between RDF and non-RDF Resources using a File" ,
207- async ( ) => {
208- const fileUrl = `${ sessionResource } .txt` ;
209-
210- const sessionFile = await overwriteFile (
211- fileUrl ,
212- // We need to type cast because the buffer definition
213- // of Blob does not have the prototype property expected
214- // by the lib.dom.ts
215- new File ( [ "test" ] , fileUrl , { type : "text/plain" } ) ,
216- fetchOptions ,
217- ) ;
218- const sessionDataset = await getSolidDataset (
219- sessionResource ,
220- fetchOptions ,
221- ) ;
201+ it ( "can create, delete, and differentiate between RDF and non-RDF Resources using a File" , async ( ) => {
202+ const fileUrl = `${ sessionResource } .txt` ;
222203
223- // Eslint isn't detecting the fact that this is inside an it statement
224- // because of the conditional.
225- // eslint-disable-next-line jest/no-standalone-expect
226- expect ( isRawData ( sessionDataset ) ) . toBe ( false ) ;
227- // eslint-disable-next-line jest/no-standalone-expect
228- expect ( isRawData ( sessionFile ) ) . toBe ( true ) ;
204+ const sessionFile = await overwriteFile (
205+ fileUrl ,
206+ // We need to type cast because the buffer definition
207+ // of Blob does not have the prototype property expected
208+ // by the lib.dom.ts
209+ new File ( [ "test" ] , fileUrl , { type : "text/plain" } ) ,
210+ fetchOptions ,
211+ ) ;
212+ const sessionDataset = await getSolidDataset ( sessionResource , fetchOptions ) ;
229213
230- await deleteFile ( fileUrl , fetchOptions ) ;
231- } ,
232- ) ;
214+ // Eslint isn't detecting the fact that this is inside an it statement
215+ // because of the conditional.
216+ // eslint-disable-next-line jest/no-standalone-expect
217+ expect ( isRawData ( sessionDataset ) ) . toBe ( false ) ;
218+ // eslint-disable-next-line jest/no-standalone-expect
219+ expect ( isRawData ( sessionFile ) ) . toBe ( true ) ;
220+
221+ await deleteFile ( fileUrl , fetchOptions ) ;
222+ } ) ;
233223
234224 it ( "can create, delete, and differentiate between RDF and non-RDF Resources using a File from the node Buffer package" , async ( ) => {
235225 const fileUrl = `${ sessionResource } .txt` ;
0 commit comments