Skip to content

Commit

Permalink
feat: add test for last breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mg901 committed Mar 30, 2019
1 parent 09b4d6e commit 02969de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ describe('getNextBreakpointValue', () => {

it('show warn if the breakpoint cannot be used ', () => {
try {
getNextBreakpointValue('xlDesktop', DEFAULT_BREAKS_MAP);
getNextBreakpointValue('lgDesktop', DEFAULT_BREAKS_MAP);
expect(true).toEqual(false);
} catch (e) {
expect(e.message).toEqual(
`[styled-breakpoints]: 'xlDesktop' is invalid breakpoint name. Use 'tablet, desktop'.`,
`[styled-breakpoints]: Don't use 'lgDesktop' because it doesn't have a maximum width. Use 'desktop'.`,
);
}
});
Expand Down

0 comments on commit 02969de

Please sign in to comment.