Skip to content

Commit

Permalink
fix removed-forbidden test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Nov 21, 2020
1 parent e57657a commit 966c5df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/golden-results/removed-forbidden.sh.txt
@@ -0,0 +1,4 @@
vendor/elm-spa-example/src/Article/Body.elm: removed forbidden import Html! (Run me with `update` to fix this.)

It looks like you removed some forbidden imports. Good job! To update the config
and remove this error, just run me with the `update` command!
2 changes: 1 addition & 1 deletion tests/integration/removed-forbidden.sh
Expand Up @@ -9,7 +9,7 @@ set -e

elm-forbid-import update

FILE="$(jq -r '.file' <<< "$MATCH")"
FILE="$(jq -r '.path' <<< "$MATCH")"
cp "$FILE" "$FILE.bak"
sed -i "$(jq '.position.row' <<< "$MATCH")d" "$FILE"

Expand Down

0 comments on commit 966c5df

Please sign in to comment.