Skip to content

Commit

Permalink
fix(src): small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meme-content committed Jan 19, 2019
1 parent bc873a2 commit 2bdad30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions __tests__/HOFs.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { withMinMedia, withMaxMedia, widthMinAndMaxMedia } from '../src/HOFs';
import { withMinMedia, withMaxMedia, withMinAndMaxMedia } from '../src/HOFs';

describe('HOFs', () => {
describe('withMinMedia', () => {
Expand All @@ -13,9 +13,9 @@ describe('HOFs', () => {
});
});

describe('widthMinAndMaxMedia', () => {
describe('withMinAndMaxMedia', () => {
it('should return string containing the breakpoint value with media query', () => {
expect(widthMinAndMaxMedia('40em', '60em')).toEqual(
expect(withMinAndMaxMedia('40em', '60em')).toEqual(
'@media (min-width: 40em) and (max-width: 60em)',
);
});
Expand Down
2 changes: 1 addition & 1 deletion src/HOFs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export const withMinMedia = (minWidth: any): string =>
export const withMaxMedia = (maxWidth: any): string =>
`@media (max-width: ${maxWidth})`;

export const widthMinAndMaxMedia = (minWidth: any, maxWidth: any): string =>
export const withMinAndMaxMedia = (minWidth: any, maxWidth: any): string =>
`@media (min-width: ${minWidth}) and (max-width: ${maxWidth})`;

0 comments on commit 2bdad30

Please sign in to comment.