Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Nov 22, 2023
1 parent 09a2766 commit 6fee785
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe('@daffodil/demo | DemoInMemoryBackendService', () => {
});
});

describe('when collectionName is country', () => {
describe('when collectionName is countries', () => {

let reqInfo;
let result;
Expand All @@ -134,17 +134,17 @@ describe('@daffodil/demo | DemoInMemoryBackendService', () => {
returnedValue = 'returnedValue';
spyOn(service['geographyTestingService'], 'get').and.returnValue(returnedValue);
reqInfo = {
collectionName: 'country',
collectionName: 'countries',
};

result = service.get(reqInfo);
});

it('should call countryTestingService.get', () => {
it('should call geographyTestingService.get', () => {
expect(service['geographyTestingService'].get).toHaveBeenCalledWith(reqInfo);
});

it('should return the returned value of countryTestingService.get', () => {
it('should return the returned value of geographyTestingService.get', () => {
expect(result).toEqual(returnedValue);
});
});
Expand Down

0 comments on commit 6fee785

Please sign in to comment.