2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

Add true-sass for scss unit test

This commit is contained in:
GeoSot
2021-09-30 01:41:53 +03:00
committed by XhmikosR
parent 886b940796
commit cded4ea03e
5 changed files with 167 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
@use "sass:map";
@import "../../node_modules/sass-true/sass/true";
@import "../../scss/functions";
@import "../../scss/variables";
@include describe("Zip -function-") {
@include it("Zips multiple lists into a single multi-dimensional list") {
@include assert-equal(zip(a b c, 1 2 3), (a 1, b 2, c 3));
}
@include it("should check lists") {
@include assert-equal((4, 4), (4, 4));
}
@include it("another test") {
@include assert-equal(1, 3);
@include assert-equal(1, 4);
@include assert-equal(3, 3);
}
}
@include describe("A random test") {
@include it("another test2") {
$expected-theme-colors: (
"primary": "",
"secondary": "",
"success": "",
"info": "",
"warning": "",
"danger": "",
"light": "",
"dark": "",
"custom": ""
);
@include assert-equal(map.keys($theme-colors), map.keys($expected-theme-colors), "should do something");
}
}