Skip to content

Commit

Permalink
fix tests due to rename
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Feb 9, 2024
1 parent 12271d4 commit 0cacc77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kbn-apm-config-loader/src/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ describe('ApmConfiguration', () => {
});
});

describe('redactUsers', () => {
describe('isUsersRedactionEnabled', () => {
it('defaults to true', () => {
const kibanaConfig = {
elastic: {
Expand All @@ -415,7 +415,7 @@ describe('ApmConfiguration', () => {
};

const config = new ApmConfiguration(mockedRootDir, kibanaConfig, false);
expect(config.redactUsers()).toEqual(true);
expect(config.isUsersRedactionEnabled()).toEqual(true);
});

it('uses the value defined in the config if specified', () => {
Expand All @@ -428,7 +428,7 @@ describe('ApmConfiguration', () => {
};

const config = new ApmConfiguration(mockedRootDir, kibanaConfig, false);
expect(config.redactUsers()).toEqual(false);
expect(config.isUsersRedactionEnabled()).toEqual(false);
});
});
});

0 comments on commit 0cacc77

Please sign in to comment.