Sha256: 964740ce394a1e833bec63f8e072448874dde9c35e95da97f511d7af5014cee3

Contents?: true

Size: 674 Bytes

Versions: 7

Compression:

Stored size: 674 Bytes

Contents

//
// Joins all elements of list with passed glue
//
@include describe("[function] list-to-str") {

	$list: ("one", "two", "three");

	@include it("should expect the list to be converted into a string without spaces") {
		@include should(expect(
			flint-list-to-str($list)),
			to(be("onetwothree"))
		);
	}

	@include it("should expect the list to be converted into a string with spaces") {
		@include should(expect(
			flint-list-to-str($list, " ")),
			to(be("one two three"))
		);
	}

	@include it("should expect the list to be converted into a string with commas") {
		@include should(expect(
			flint-list-to-str($list, ", ")),
			to(be("one, two, three"))
		);
	}
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
flint-gs-2.3.6 tests/input/functions/lib/_list-to-str.scss
flint-gs-2.3.5 tests/input/functions/lib/_list-to-str.scss
flint-gs-2.3.4 tests/input/functions/lib/_list-to-str.scss
flint-gs-2.3.3 tests/input/functions/lib/_list-to-str.scss
flint-gs-2.3.2 tests/input/functions/lib/_list-to-str.scss
flint-gs-2.3.1 tests/input/functions/lib/_list-to-str.scss
flint-gs-2.3.0 tests/input/functions/lib/_list-to-str.scss