Skip to content

Commit

Permalink
ci(target-anchor-offset): add test
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-berlin committed Aug 7, 2022
1 parent c9c3086 commit 7002e1e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/target-anchor-offset.spec.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@use 'true';
@use '../mixins' as mx;

@include true.describe('target-anchor-offset()') {
@include true.it('should return a offset for target anchor') {
@include true.assert {
@include true.output {
@include mx.target-anchor-offset(150px);
}
@include true.expect {
:target {
&::before {
content: '';
display: block;
height: 150px;
margin-top: -150px;
}
}
}
}
}
}

0 comments on commit 7002e1e

Please sign in to comment.