File tree Expand file tree Collapse file tree 2 files changed +5
-32
lines changed Expand file tree Collapse file tree 2 files changed +5
-32
lines changed Original file line number Diff line number Diff line change 22
33/// <reference no-default-lib="true" />
44/// <reference lib="esnext" />
5- /// <reference path="./lib.deno_url.d.ts" />
6- /// <reference path="./lib.deno_web.d.ts" />
7- /// <reference path="./lib.deno_fetch.d.ts" />
8- /// <reference path="./lib.deno_net.d.ts" />
9- /// <reference path="./lib.deno.shared_globals.d.ts" />
10- /// <reference path="./lib.deno_websocket.d.ts" />
5+ /// <reference lib="deno.net" />
116
127/** Deno provides extra properties on `import.meta`. These are included here
138 * to ensure that these are still available when using the Deno namespace in
Original file line number Diff line number Diff line change @@ -159,31 +159,9 @@ Deno.test(
159159) ;
160160
161161Deno . test (
162- { permissions : { read : true } } ,
163- async function readFileNotFoundErrorCode ( ) {
164- try {
165- await Deno . readFile ( "definitely-not-found.json" ) ;
166- } catch ( e ) {
167- if ( e instanceof Deno . errors . NotFound ) {
168- assertEquals ( e . code , "ENOENT" ) ;
169- } else {
170- throw e ;
171- }
172- }
173- } ,
174- ) ;
175-
176- Deno . test (
177- { permissions : { read : true } } ,
178- async function readFileIsDirectoryErrorCode ( ) {
179- try {
180- await Deno . readFile ( "tests/testdata/assets/" ) ;
181- } catch ( e ) {
182- if ( e instanceof Deno . errors . IsADirectory ) {
183- assertEquals ( e . code , "EISDIR" ) ;
184- } else {
185- throw e ;
186- }
187- }
162+ { ignore : Deno . build . os !== "linux" } ,
163+ async function readFileProcFs ( ) {
164+ const data = await Deno . readFile ( "/proc/self/stat" ) ;
165+ assert ( data . byteLength > 0 ) ;
188166 } ,
189167) ;
You can’t perform that action at this time.
0 commit comments