Skip to content

Commit 355dd59

Browse files
committed
fix(shared): clarify test descriptions and error message
1 parent 1006d44 commit 355dd59

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

shared/src/document-loader/calmhub-document-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class CalmHubDocumentLoader implements DocumentLoader {
4949
const url = new URL(documentId);
5050
const protocol = url.protocol;
5151
if (protocol !== CALM_HUB_PROTO) {
52-
throw new Error(`CalmHubDocumentLoader only loads documents with protocol '${CALM_HUB_PROTO}'. Skipping. (Requested: ${protocol})`);
52+
throw new Error(`CalmHubDocumentLoader only loads documents with protocol '${CALM_HUB_PROTO}'. (Requested: ${protocol})`);
5353
}
5454
const path = url.pathname;
5555

shared/src/document-loader/document-loader.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('DocumentLoader', () => {
3333
vi.resetModules();
3434
});
3535

36-
it('should create a FileSystemDocumentLoader when loadMode is "filesystem"', () => {
36+
it('should create a FileSystemDocumentLoader', () => {
3737

3838
const docLoaderOpts: DocumentLoaderOptions = {
3939
schemaDirectoryPath: 'schemas'
@@ -44,7 +44,7 @@ describe('DocumentLoader', () => {
4444
expect(mocks.fsDocLoader).toHaveBeenCalledWith([CALM_META_SCHEMA_DIRECTORY, 'schemas'], false);
4545
});
4646

47-
it('should create a CalmHubDocumentLoader when loadMode is "calmhub"', () => {
47+
it('should create a CalmHubDocumentLoader when calmHubUrl is defined in loader options', () => {
4848

4949
const docLoaderOpts: DocumentLoaderOptions = {
5050
calmHubUrl: 'https://example.com'

0 commit comments

Comments
 (0)