Sha256: 6afe693f58b8afeed934ecf02a4681af1cf2a65e929c9d9e0683bfb657d58683

Contents?: true

Size: 686 Bytes

Versions: 8

Compression:

Stored size: 686 Bytes

Contents

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

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

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

	@include it("should expect the list to be converted into a string with spaces") {
		@include should(expect(
			flint-list-to-string($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-string($list, ", ")),
			to(be("one, two, three"))
		);
	}
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
flint-gs-2.2.0 tests/input/functions/lib/_list-to-string.scss
flint-gs-2.1.4 tests/input/functions/lib/_list-to-string.scss
flint-gs-2.1.3 tests/input/functions/lib/_list-to-string.scss
flint-gs-2.1.2 tests/input/functions/lib/_list-to-string.scss
flint-gs-2.1.1 tests/input/functions/lib/_list-to-string.scss
flint-gs-2.1.0 tests/input/functions/lib/_list-to-string.scss
flint-gs-2.0.9 tests/input/functions/lib/_list-to-string.scss
flint-gs-2.0.8 tests/input/functions/lib/_list-to-string.scss