Skip to content

Commit

Permalink
Revert indexer unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrov-d committed Oct 29, 2024
1 parent e1d66e5 commit 636a324
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/sdk/src/tests/indexing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ describe('Indexing tests', () => {
});

test('Deploy a indexer with invalid path, should return error', async () => {
const logSpy = jest.spyOn(global.console, 'error');
await indexing.indexer(indexer_uuid).deployIndexer('some invalid path');
expect(logSpy).toHaveBeenCalled();
await expect(
indexing.indexer(getIndexerUUID()).deployIndexer('some invalid path'),
).rejects.toThrow('Path does not exist');
});

test('Deploy a indexer with valid path but invalid content, should return error', async () => {
const logSpy = jest.spyOn(global.console, 'error');
await indexing.indexer(indexer_uuid).deployIndexer('D:\\Sqd');
expect(logSpy).toHaveBeenCalled();
await expect(
indexing.indexer(getIndexerUUID()).deployIndexer('D:\\Sqd'),
).rejects.toThrow('squid.yaml not found in directory');
});
});

0 comments on commit 636a324

Please sign in to comment.