Skip to content

Commit

Permalink
add breakpoint test
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcpickle committed Nov 2, 2016
1 parent 8c0e0ed commit bf56553
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
@import 'mixins/test-font-size';
@import 'mixins/test-padding';
@import 'mixins/test-easing';
@import 'mixins/test-breakpoints';
27 changes: 27 additions & 0 deletions test/mixins/test-breakpoints.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@include test-module('Spread Mixin') {

@include test('Padding scaling with custom breakpoints [mixin]') {
@include assert('Outputs a scaling padding over media breakpoints') {
$breakpoints: (
'break1': 123px,
'break2': 456px,
);

@include output {
@include spread(padding, 1rem, 3rem, $breakpoints: $breakpoints);
}

@include expect {
padding: 1rem;

@media (min-width: 123px) {
padding: 2rem;
}

@media (min-width: 456px) {
padding: 3rem;
}
}
}
}
}

0 comments on commit bf56553

Please sign in to comment.