diff --git a/globals/spacing/_map.scss b/globals/spacing/_map.scss index aa4a06e..08251be 100644 --- a/globals/spacing/_map.scss +++ b/globals/spacing/_map.scss @@ -1,5 +1,6 @@ $spacer: ( 'sm': 0.5rem, 'md': 1rem, - 'lg': 1.5rem + 'lg': 1.5rem, + 'auto': auto ) !default; diff --git a/globals/spacing/_test.scss b/globals/spacing/_test.scss index 571e293..7d95562 100644 --- a/globals/spacing/_test.scss +++ b/globals/spacing/_test.scss @@ -4,7 +4,8 @@ $spacer: ( 'sm': 0.5rem, 'md': 1rem, - 'lg': 1.5rem + 'lg': 1.5rem, + 'auto': auto ); @include describe('The spacing global') { @@ -40,4 +41,15 @@ $spacer: ( "Expected space global to output correct rem value for large." ); } + + @include it('outputs the correct value for auto') { + $test: space('auto'); + $expect: auto; + + @include assert-equal( + $test, + $expect, + "Expected space global to output correct value for large." + ); + } }