File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -149,9 +149,11 @@ describe("readResources", () => {
149
149
it ( "reads absolute resource paths when allowAbsolute there is no resourceDirectory" , async ( ) => {
150
150
const gltf = readGltf ( boxTexturedSeparate2Path ) ;
151
151
const toAbs = ( uri ) =>
152
- new URL ( uri , pathToFileURL ( boxTexturedSeparate2Path ) ) . toString ( ) ;
152
+ fileURLToPath (
153
+ new URL ( uri , pathToFileURL ( boxTexturedSeparate2Path ) ) . toString ( ) ,
154
+ ) ;
153
155
spyOn ( process . stderr , "write" ) ;
154
- // uri = file:// /...
156
+ // uri = /...
155
157
gltf . buffers [ 0 ] . uri = toAbs ( gltf . buffers [ 0 ] . uri ) ;
156
158
gltf . images [ 0 ] . uri = toAbs ( gltf . images [ 0 ] . uri ) ;
157
159
@@ -167,11 +169,9 @@ describe("readResources", () => {
167
169
it ( "reads absolute resource paths when allowAbsolute is true" , async ( ) => {
168
170
const gltf = readGltf ( boxTexturedSeparate2Path ) ;
169
171
const toAbs = ( uri ) =>
170
- fileURLToPath (
171
- new URL ( uri , pathToFileURL ( boxTexturedSeparate2Path ) ) . toString ( ) ,
172
- ) ;
172
+ new URL ( uri , pathToFileURL ( boxTexturedSeparate2Path ) ) . toString ( ) ;
173
173
spyOn ( process . stderr , "write" ) ;
174
- // uri = /...
174
+ // uri = file:// /...
175
175
gltf . buffers [ 0 ] . uri = toAbs ( gltf . buffers [ 0 ] . uri ) ;
176
176
gltf . images [ 0 ] . uri = toAbs ( gltf . images [ 0 ] . uri ) ;
177
177
You can’t perform that action at this time.
0 commit comments