mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Rename resourceExists to hasResource
The function was also moved to the smaller interface ResourceSet.
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user