Skip to content

Instantly share code, notes, and snippets.

@Weiyuan-Lane
Created June 23, 2019 09:26
Show Gist options
  • Save Weiyuan-Lane/a2058ca9f264c018d3853f516f9613ee to your computer and use it in GitHub Desktop.
Save Weiyuan-Lane/a2058ca9f264c018d3853f516f9613ee to your computer and use it in GitHub Desktop.
Unit testing sample for factorial function in SCSS
@import 'true';
@import 'factorial';
@include describe('.factorial [function]') {
@include it('should return value for 10! as 3628800') {
@include assert-equal(factorial(10), 3628800);
}
}
@include report;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment