Skip to content

Commit

Permalink
PR Feeback: interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz committed Nov 9, 2020
1 parent 7db5b62 commit 406a04d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('<LogRetentionPanel />', () => {

const logRetentionPanel = shallow(<LogRetentionPanel />);
expect(
logRetentionPanel.find(`[data-test-subj="LogRetentionPanelAnalyticsSwitch"]`).prop('checked')
logRetentionPanel.find('[data-test-subj="LogRetentionPanelAnalyticsSwitch"]').prop('checked')
).toEqual(false);
});

Expand All @@ -64,7 +64,7 @@ describe('<LogRetentionPanel />', () => {

const logRetentionPanel = shallow(<LogRetentionPanel />);
expect(
logRetentionPanel.find(`[data-test-subj="LogRetentionPanelAnalyticsSwitch"]`).prop('checked')
logRetentionPanel.find('[data-test-subj="LogRetentionPanelAnalyticsSwitch"]').prop('checked')
).toEqual(true);
});

Expand All @@ -80,7 +80,7 @@ describe('<LogRetentionPanel />', () => {

const logRetentionPanel = shallow(<LogRetentionPanel />);
expect(
logRetentionPanel.find(`[data-test-subj="LogRetentionPanelAPISwitch"]`).prop('checked')
logRetentionPanel.find('[data-test-subj="LogRetentionPanelAPISwitch"]').prop('checked')
).toEqual(false);
});

Expand All @@ -96,7 +96,7 @@ describe('<LogRetentionPanel />', () => {

const logRetentionPanel = shallow(<LogRetentionPanel />);
expect(
logRetentionPanel.find(`[data-test-subj="LogRetentionPanelAPISwitch"]`).prop('checked')
logRetentionPanel.find('[data-test-subj="LogRetentionPanelAPISwitch"]').prop('checked')
).toEqual(true);
});

Expand All @@ -107,10 +107,10 @@ describe('<LogRetentionPanel />', () => {
});
const logRetentionPanel = shallow(<LogRetentionPanel />);
expect(
logRetentionPanel.find(`[data-test-subj="LogRetentionPanelAnalyticsSwitch"]`).prop('disabled')
logRetentionPanel.find('[data-test-subj="LogRetentionPanelAnalyticsSwitch"]').prop('disabled')
).toEqual(false);
expect(
logRetentionPanel.find(`[data-test-subj="LogRetentionPanelAPISwitch"]`).prop('disabled')
logRetentionPanel.find('[data-test-subj="LogRetentionPanelAPISwitch"]').prop('disabled')
).toEqual(false);
});

Expand All @@ -122,10 +122,10 @@ describe('<LogRetentionPanel />', () => {
const logRetentionPanel = shallow(<LogRetentionPanel />);

expect(
logRetentionPanel.find(`[data-test-subj="LogRetentionPanelAnalyticsSwitch"]`).prop('disabled')
logRetentionPanel.find('[data-test-subj="LogRetentionPanelAnalyticsSwitch"]').prop('disabled')
).toEqual(true);
expect(
logRetentionPanel.find(`[data-test-subj="LogRetentionPanelAPISwitch"]`).prop('disabled')
logRetentionPanel.find('[data-test-subj="LogRetentionPanelAPISwitch"]').prop('disabled')
).toEqual(true);
});

Expand All @@ -140,7 +140,7 @@ describe('<LogRetentionPanel />', () => {
});
const logRetentionPanel = shallow(<LogRetentionPanel />);
logRetentionPanel
.find(`[data-test-subj="LogRetentionPanelAnalyticsSwitch"]`)
.find('[data-test-subj="LogRetentionPanelAnalyticsSwitch"]')
.simulate('change');
expect(actions.toggleLogRetention).toHaveBeenCalledWith('analytics');
});
Expand All @@ -155,7 +155,7 @@ describe('<LogRetentionPanel />', () => {
}),
});
const logRetentionPanel = shallow(<LogRetentionPanel />);
logRetentionPanel.find(`[data-test-subj="LogRetentionPanelAPISwitch"]`).simulate('change');
logRetentionPanel.find('[data-test-subj="LogRetentionPanelAPISwitch"]').simulate('change');
expect(actions.toggleLogRetention).toHaveBeenCalledWith('api');
});
});
Expand Down Expand Up @@ -184,4 +184,4 @@ const mockLogRetention = (logRetention: Partial<ILogRetention>) => {
...logRetention.api,
},
};
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('determineTooltipContent', () => {

describe('analytics messages', () => {
describe('when analytics logs are enabled', () => {
describe('and they're using the default policy', () => {
describe("and they're using the default policy", () => {
it('will render a retention policy message', () => {
expect(
determineTooltipContent(ANALYTICS_MESSAGES, true, {
Expand Down Expand Up @@ -95,7 +95,7 @@ describe('determineTooltipContent', () => {

describe('api messages', () => {
describe('when analytics logs are enabled', () => {
describe('and they're using the default policy', () => {
describe("and they're using the default policy", () => {
it('will render a retention policy message', () => {
expect(
determineTooltipContent(API_MESSAGES, true, {
Expand Down

0 comments on commit 406a04d

Please sign in to comment.