From: Brett Mason Date: Tue, 17 Jan 2017 11:39:21 +0000 (+0000) Subject: Attempt at adding a quick unit test for `map-safe-get` X-Git-Tag: 6.3.1~31^2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df77d1225f47eac60cdf71c3a9dd136fd0f5a193;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Attempt at adding a quick unit test for `map-safe-get` --- diff --git a/test/sass/_value.scss b/test/sass/_value.scss index 7b30179e7..981dcfdda 100755 --- a/test/sass/_value.scss +++ b/test/sass/_value.scss @@ -114,5 +114,16 @@ 'Gets a value from a nested map'); } + @include test('Map Safe Get [function]') { + $map: ( + one: 'two', + ), + ); + $expect: 'two'; + + @include assert-equal(map-safe-get($map, one), $expect, + 'Safely return a value from a map'); + } + // TODO: Add spec for pow() }