Skip to content

Commit e329208

Browse files
committed
fix: review updates
1 parent 48af6f2 commit e329208

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/__tests__/server.getResources.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describe('findNearestPackageJson', () => {
162162
jest.clearAllMocks();
163163
});
164164

165-
it('should attemp to find the nearest package.json', async () => {
165+
it('should attempt to find the nearest package.json', async () => {
166166
// Use the PF MCP package.json
167167
const packagePath = process.cwd();
168168
const path = await findNearestPackageJson(packagePath);

src/server.getResources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ const mockPathOrUrlFunction = async (pathOrUrl: string, options = getOptions())
248248
if (fixtureUrl) {
249249
updatedPathOrUrl = `${fixtureUrl}${updatedPathOrUrl.startsWith('/') ? updatedPathOrUrl : `/${updatedPathOrUrl}`}`;
250250
} else if (!isUrl(updatedPathOrUrl)) {
251-
throw new Error(`Access denied: path ${updatedPathOrUrl} cannot be access in ${options.mode} mode`);
251+
throw new Error(`Access denied: path ${updatedPathOrUrl} cannot be accessed in ${options.mode} mode`);
252252
}
253253

254254
// In test mode, everything is treated as a fetchable resource to allow mocking

0 commit comments

Comments
 (0)