Skip to content

Commit

Permalink
update test descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Nik Nasr <[email protected]>
  • Loading branch information
nikrooz committed Dec 12, 2024
1 parent 9786f33 commit 2bfc258
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/elements-core/src/components/TryIt/TryIt.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ describe('TryIt', () => {
});

describe('No Request body', () => {
it('with GET method', async () => {
it('Adds no Content-type header with GET method', async () => {
render(<TryItWithPersistence httpOperation={basicOperation} />);

clickSend();
Expand All @@ -738,7 +738,7 @@ describe('TryIt', () => {
expect(headers.get('Content-Type')).toBe(null);
});

it('with POST method', async () => {
it('Adds no Content-type header with POST method', async () => {
render(<TryItWithPersistence httpOperation={{ ...basicOperation, request: undefined, method: 'POST' }} />);

clickSend();
Expand All @@ -750,7 +750,7 @@ describe('TryIt', () => {
expect(headers.get('Content-Type')).toBe(null);
});

it('with PATCH method', async () => {
it('Adds no Content-type header with PATCH method', async () => {
render(<TryItWithPersistence httpOperation={{ ...basicOperation, request: undefined, method: 'PATCH' }} />);

clickSend();
Expand All @@ -762,7 +762,7 @@ describe('TryIt', () => {
expect(headers.get('Content-Type')).toBe(null);
});

it('with PUT method', async () => {
it('Adds no Content-type header with PUT method', async () => {
render(<TryItWithPersistence httpOperation={{ ...basicOperation, request: undefined, method: 'PUT' }} />);

clickSend();
Expand Down

0 comments on commit 2bfc258

Please sign in to comment.