Skip to content

Commit

Permalink
test: fix typo (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeci committed Jan 18, 2021
1 parent 40e404c commit 0b0b6c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/middlewares/validation-chain-builders.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('body()', () => {
});

describe('cookie()', () => {
it('checks only the body location', async () => {
it('checks only the cookie location', async () => {
const chain = cookie('foo').isInt();
const errors = await runAndGetErrors(chain, req);
expect(errors).toHaveLength(1);
Expand All @@ -88,7 +88,7 @@ describe('cookie()', () => {
});

describe('header()', () => {
it('checks only the body location', async () => {
it('checks only the header location', async () => {
const chain = header('foo').isInt();
const errors = await runAndGetErrors(chain, req);
expect(errors).toHaveLength(1);
Expand All @@ -97,7 +97,7 @@ describe('header()', () => {
});

describe('param()', () => {
it('checks only the body location', async () => {
it('checks only the param location', async () => {
const chain = param('foo').isInt();
const errors = await runAndGetErrors(chain, req);
expect(errors).toHaveLength(1);
Expand All @@ -106,7 +106,7 @@ describe('param()', () => {
});

describe('query()', () => {
it('checks only the body location', async () => {
it('checks only the query location', async () => {
const chain = query('foo').isInt();
const errors = await runAndGetErrors(chain, req);
expect(errors).toHaveLength(1);
Expand Down

0 comments on commit 0b0b6c8

Please sign in to comment.