@@ -201,35 +201,28 @@ describe("Authenticated end-to-end", () => {
201201 await deleteFile ( fileUrl , fetchOptions ) ;
202202 } ) ;
203203
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- ) ;
204+ it ( "can create, delete, and differentiate between RDF and non-RDF Resources using a File" , async ( ) => {
205+ const fileUrl = `${ sessionResource } .txt` ;
206+
207+ const sessionFile = await overwriteFile (
208+ fileUrl ,
209+ // We need to type cast because the buffer definition
210+ // of Blob does not have the prototype property expected
211+ // by the lib.dom.ts
212+ new File ( [ "test" ] , fileUrl , { type : "text/plain" } ) ,
213+ fetchOptions ,
214+ ) ;
215+ const sessionDataset = await getSolidDataset ( sessionResource , fetchOptions ) ;
222216
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 ) ;
217+ // Eslint isn't detecting the fact that this is inside an it statement
218+ // because of the conditional.
219+ // eslint-disable-next-line jest/no-standalone-expect
220+ expect ( isRawData ( sessionDataset ) ) . toBe ( false ) ;
221+ // eslint-disable-next-line jest/no-standalone-expect
222+ expect ( isRawData ( sessionFile ) ) . toBe ( true ) ;
229223
230- await deleteFile ( fileUrl , fetchOptions ) ;
231- } ,
232- ) ;
224+ await deleteFile ( fileUrl , fetchOptions ) ;
225+ } ) ;
233226
234227 it ( "can create, delete, and differentiate between RDF and non-RDF Resources using a File from the node Buffer package" , async ( ) => {
235228 const fileUrl = `${ sessionResource } .txt` ;
0 commit comments