]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Attempt at adding a quick unit test for `map-safe-get`
authorBrett Mason <brettsmason@gmail.com>
Tue, 17 Jan 2017 11:39:21 +0000 (11:39 +0000)
committerBrett Mason <brettsmason@gmail.com>
Tue, 17 Jan 2017 11:39:21 +0000 (11:39 +0000)
test/sass/_value.scss

index 7b30179e728b35b69f5b60bc12dc59db567f3dbb..981dcfddaee49bbb48fd00e907a848434c40a07c 100755 (executable)
       '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()
 }