Skip to content

Commit 60de78c

Browse files
jportnerrudolf
andauthored
Apply suggestions from code review
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
1 parent 21188ed commit 60de78c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/server/core_usage_data/core_usage_stats_client.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('CoreUsageStatsClient', () => {
6868
});
6969

7070
describe('#incrementSavedObjectsImport', () => {
71-
it('does not throw an error if repository create operation fails', async () => {
71+
it('does not throw an error if repository incrementCounter operation fails', async () => {
7272
const { usageStatsClient, repositoryMock } = setup();
7373
repositoryMock.incrementCounter.mockRejectedValue(new Error('Oh no!'));
7474

@@ -120,7 +120,7 @@ describe('CoreUsageStatsClient', () => {
120120
});
121121

122122
describe('#incrementSavedObjectsResolveImportErrors', () => {
123-
it('does not throw an error if repository create operation fails', async () => {
123+
it('does not throw an error if repository incrementCounter operation fails', async () => {
124124
const { usageStatsClient, repositoryMock } = setup();
125125
repositoryMock.incrementCounter.mockRejectedValue(new Error('Oh no!'));
126126

@@ -173,7 +173,7 @@ describe('CoreUsageStatsClient', () => {
173173
});
174174

175175
describe('#incrementSavedObjectsExport', () => {
176-
it('does not throw an error if repository create operation fails', async () => {
176+
it('does not throw an error if repository incrementCounter operation fails', async () => {
177177
const { usageStatsClient, repositoryMock } = setup();
178178
repositoryMock.incrementCounter.mockRejectedValue(new Error('Oh no!'));
179179

0 commit comments

Comments
 (0)