refactor: Rename resourceExists to hasResource

The function was also moved to the smaller interface ResourceSet.
This commit is contained in:
Joachim Van Herwegen
2022-02-23 15:41:31 +01:00
parent 2ae5924dde
commit 4404fa07d9
26 changed files with 73 additions and 64 deletions

View File

@@ -19,7 +19,7 @@ describe('A JsonResourceStorage', (): void => {
beforeEach(async(): Promise<void> => {
const data: Record<string, string> = { };
store = {
async resourceExists(identifier: ResourceIdentifier): Promise<boolean> {
async hasResource(identifier: ResourceIdentifier): Promise<boolean> {
return Boolean(data[identifier.path]);
},
async getRepresentation(identifier: ResourceIdentifier): Promise<Representation> {