Skip to content

Commit a60fb8a

Browse files
committed
test(fs): Adjust getIntegrity tests
1 parent 7c759d4 commit a60fb8a

File tree

3 files changed

+189
-81
lines changed

3 files changed

+189
-81
lines changed

packages/fs/lib/Resource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ class Resource {
539539
return this.#integrity;
540540
}
541541
if (this.isDirectory()) {
542-
throw new Error(`Unable to calculate hash for directory resource: ${this.#path}`);
542+
throw new Error(`Unable to calculate integrity for directory resource: ${this.#path}`);
543543
}
544544

545545
// First wait for new content if the current content is flagged as drained

packages/fs/lib/ResourceFacade.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,12 @@ class ResourceFacade {
190190
return this.#resource.setStream(stream);
191191
}
192192

193-
getHash() {
194-
return this.#resource.getHash();
193+
getIntegrity() {
194+
return this.#resource.getIntegrity();
195+
}
196+
197+
getInode() {
198+
return this.#resource.getInode();
195199
}
196200

197201
/**

0 commit comments

Comments
 (0)