@@ -99,18 +99,18 @@ describe("LoaderResolver.find(path, {useStale: true})", () => {
99
99
} ) ;
100
100
} ) ;
101
101
102
- describe ( "LoaderResolver.getFileHash (path)" , ( ) => {
102
+ describe ( "LoaderResolver.getSourceFileHash (path)" , ( ) => {
103
103
it ( "returns the content hash for the specified file’s data loader" , async ( ) => {
104
104
const loaders = new LoaderResolver ( { root : "test/input/build/archives.posix" } ) ;
105
- assert . strictEqual ( loaders . getFileHash ( "dynamic.zip.sh" ) , "516cec2431ce8f1181a7a2a161db8bdfcaea132d3b2c37f863ea6f05d64d1d10" ) ; // prettier-ignore
106
- assert . strictEqual ( loaders . getFileHash ( "dynamic.zip" ) , "516cec2431ce8f1181a7a2a161db8bdfcaea132d3b2c37f863ea6f05d64d1d10" ) ; // prettier-ignore
107
- assert . strictEqual ( loaders . getFileHash ( "dynamic/file.txt" ) , "516cec2431ce8f1181a7a2a161db8bdfcaea132d3b2c37f863ea6f05d64d1d10" ) ; // prettier-ignore
108
- assert . strictEqual ( loaders . getFileHash ( "static.zip" ) , "e6afff224da77b900cfe3ab8789f2283883300e1497548c30af66dfe4c29b429" ) ; // prettier-ignore
109
- assert . strictEqual ( loaders . getFileHash ( "static/file.txt" ) , "e6afff224da77b900cfe3ab8789f2283883300e1497548c30af66dfe4c29b429" ) ; // prettier-ignore
105
+ assert . strictEqual ( loaders . getSourceFileHash ( "dynamic.zip.sh" ) , "516cec2431ce8f1181a7a2a161db8bdfcaea132d3b2c37f863ea6f05d64d1d10" ) ; // prettier-ignore
106
+ assert . strictEqual ( loaders . getSourceFileHash ( "dynamic.zip" ) , "516cec2431ce8f1181a7a2a161db8bdfcaea132d3b2c37f863ea6f05d64d1d10" ) ; // prettier-ignore
107
+ assert . strictEqual ( loaders . getSourceFileHash ( "dynamic/file.txt" ) , "516cec2431ce8f1181a7a2a161db8bdfcaea132d3b2c37f863ea6f05d64d1d10" ) ; // prettier-ignore
108
+ assert . strictEqual ( loaders . getSourceFileHash ( "static.zip" ) , "e6afff224da77b900cfe3ab8789f2283883300e1497548c30af66dfe4c29b429" ) ; // prettier-ignore
109
+ assert . strictEqual ( loaders . getSourceFileHash ( "static/file.txt" ) , "e6afff224da77b900cfe3ab8789f2283883300e1497548c30af66dfe4c29b429" ) ; // prettier-ignore
110
110
} ) ;
111
111
it ( "returns the empty hash if the specified file does not exist" , async ( ) => {
112
112
const loaders = new LoaderResolver ( { root : "test/input/build/files" } ) ;
113
- assert . strictEqual ( loaders . getFileHash ( "does-not-exist.csv" ) , "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" ) ; // prettier-ignore
113
+ assert . strictEqual ( loaders . getSourceFileHash ( "does-not-exist.csv" ) , "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" ) ; // prettier-ignore
114
114
} ) ;
115
115
} ) ;
116
116
0 commit comments