Skip to content

Commit

Permalink
Update Dart Sass spec for map-remove() with a named $key argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jul 3, 2019
1 parent 9ef8378 commit 0f9c9fa
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions spec/core_functions/map/remove.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ a {

<===>
================================================================================
<===> named/options.yml
---
:todo:
- sass/dart-sass#742

<===> named/input.scss
a {b: inspect(map-remove($map: (c: d), $key: c))}

Expand Down Expand Up @@ -157,8 +152,15 @@ Error: Function map-remove is missing argument $map.
<===> error/positional_and_named/options.yml
---
:todo:
- sass/dart-sass#742
- sass/libsass#2927

<===> error/positional_and_named/input.scss
a {b: map-remove((c: d, e: f), c, $key: e)}

<===> error/positional_and_named/error
Error: Argument $key was passed both by position and by name.
,
1 | a {b: map-remove((c: d, e: f), c, $key: e)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

0 comments on commit 0f9c9fa

Please sign in to comment.