Skip to content

Commit

Permalink
refactor(react): update tests from DAP to AC
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Jan 5, 2021
1 parent c0c5aef commit ba29649
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ describe('CodeSnippetSkeleton', () => {
);

it.each(snippetTypes)(
'should have no DAP violations with type="%s"',
'should have no AC violations with type="%s"',
async (type) => {
const { container } = render(<CodeSnippetSkeleton type={type} />);
await expect(container).toHaveNoDAPViolations(
await expect(container).toHaveNoACViolations(
`CodeSnippetSkeleton-${type}`
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ describe('FileUploader', () => {
await expect(container).toHaveNoAxeViolations();
});

it.skip('should have no DAP violations', async () => {
it.skip('should have no AC violations', async () => {
const { container } = render(<FileUploader />);
await expect(container).toHaveNoDAPViolations('FileUploader');
await expect(container).toHaveNoACViolations('FileUploader');
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ describe('FileUploaderSkeleton', () => {
await expect(container).toHaveNoAxeViolations();
});

it('should have no DAP violations', async () => {
it('should have no AC violations', async () => {
const { container } = render(<FileUploaderSkeleton />);
await expect(container).toHaveNoDAPViolations('FileUploaderSkeleton');
await expect(container).toHaveNoACViolations('FileUploaderSkeleton');
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ describe('Filename', () => {
);

it.each(statuses)(
'should have no DAP violations with status %s',
'should have no AC violations with status %s',
async (status) => {
const { container } = render(
<Filename iconDescription="test description" status={status} />
);
await expect(container).toHaveNoDAPViolations(`Filename-${status}`);
await expect(container).toHaveNoACViolations(`Filename-${status}`);
}
);
});
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/Loading/Loading-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ describe('Loading', () => {
await expect(container).toHaveNoAxeViolations();
});

it('should have no DAP violations', async () => {
it('should have no AC violations', async () => {
const { container } = render(<Loading />);
await expect(container).toHaveNoDAPViolations('Loading');
await expect(container).toHaveNoACViolations('Loading');
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ describe('MultiSelect', () => {
await expect(container).toHaveNoAxeViolations();
});

it('should have no DAP violations', async () => {
it('should have no AC violations', async () => {
const items = generateItems(4, generateGenericItem);
const { container } = render(
<MultiSelect id="test" label="Field" items={items} />
);
await expect(container).toHaveNoDAPViolations();
await expect(container).toHaveNoACViolations('MultiSelect');
});
});

Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/Tag/Tag-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ describe('Tag', () => {
await expect(container).toHaveNoAxeViolations();
});

it('should have no DAP violations', async () => {
it('should have no AC violations', async () => {
const { container } = render(
<main>
<Tag type="red">This is not a tag</Tag>
</main>
);
await expect(container).toHaveNoDAPViolations('Tag');
await expect(container).toHaveNoACViolations('Tag');
});
});

Expand Down

0 comments on commit ba29649

Please sign in to comment.