Skip to content

Commit

Permalink
Broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
kennsippell committed May 1, 2024
1 parent 10f47de commit 434df5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/services/upload-manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,13 @@ describe('services/upload-manager.ts', () => {
});

it('#146 - error details are clear when CHT returns a string', async () => {
const { remotePlace, sessionCache, chtApi } = await createMocks();
const { subcounty, sessionCache, chtApi } = await createMocks();
const errorString = 'foo';

chtApi.createPlace.throws({ response: { data: errorString } });

const chu_name = 'new chu';
const chu = await createChu(remotePlace, chu_name, sessionCache, chtApi);
const chu = await createChu(subcounty, chu_name, sessionCache, chtApi);

const uploadManager = new UploadManager();
await uploadManager.doUpload(sessionCache.getPlaces(), chtApi);
Expand Down

0 comments on commit 434df5d

Please sign in to comment.