spec-name { // set any variables we need. $base-size: 10px; // import the scss files we want to test. @import "../../functions"; strip-units { remove-from-em { expect: to-equal(strip-units(1em), 1); } } to-px { basic-conversion { expect: to-equal(to-px(1em), 10px); } basic-conversion-not { expect: to-not-equal(to-px(10em), 10px); } } to-em { basic-conversion { expect: to-equal(to-em(10px), 1em); } convert-with-em-context { expect: to-equal(to-em(10px, 2em), .5em); } convert-with-px-context { expect: to-equal(to-em(10px, 20px), .5em); } } has-text { expect: to-contain('pi', 'pixel') } does-not-have-text { expect: to-not-contain('p0', 'pixel') } }