Skip to content

Commit

Permalink
fix: remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
dzehnder committed Aug 23, 2024
1 parent b7c48c3 commit 1c712ab
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/spacecat-shared-google-client/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,22 +235,6 @@ describe('GoogleClient', () => {
}
});

it('should refresh access token when it is expired', async () => {
defaultConfig.expiry_date = Date.now() - 1000;
stubSecretManager(defaultConfig);

const testResult = { data: 'testData' };
const webmastersStub = sinon.stub().resolves(testResult);
sinon.stub(google, 'webmasters').returns({
searchanalytics: {
query: webmastersStub,
},
});
const googleClient = await GoogleClient.createFrom(context, baseURL);
const result = await googleClient.getOrganicSearchData(startDate, endDate);
expect(result).to.eql(testResult);
});

it('should throw an error if the date format is invalid', async () => {
stubSecretManager(defaultConfig);
const googleClient = await GoogleClient.createFrom(context, baseURL);
Expand Down

0 comments on commit 1c712ab

Please sign in to comment.