Sha256: 11b16125f460730df47d861b2b93437d0aca66f6a869d6d500bbcc6b82c07def

Contents?: true

Size: 601 Bytes

Versions: 10

Compression:

Stored size: 601 Bytes

Contents

describe('Filter:arrayToString', function() {
    var array, arrayToStringFilter;

    beforeEach(module('Bastion.components.formatters'));

    beforeEach(inject(function($filter) {
        array = [
            'one',
            'two',
            'three'
        ];
        arrayToStringFilter = $filter('arrayToString');
    }));

    it("transforms an array to a string.", function() {
        expect(arrayToStringFilter(array)).toBe('one, two, three');
    });

    it("allows a custom separator", function() {
        expect(arrayToStringFilter(array, ':')).toBe('one:two:three');
    });
});

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bastion-6.1.23 test/components/formatters/array-to-string.filter.test.js
bastion-6.1.22 test/components/formatters/array-to-string.filter.test.js
bastion-6.1.21 test/components/formatters/array-to-string.filter.test.js
bastion-6.1.20 test/components/formatters/array-to-string.filter.test.js
bastion-6.1.19 test/components/formatters/array-to-string.filter.test.js
bastion-6.1.18 test/components/formatters/array-to-string.filter.test.js
bastion-6.1.17 test/components/formatters/array-to-string.filter.test.js
bastion-6.1.16 test/components/formatters/array-to-string.filter.test.js
bastion-6.1.15 test/components/formatters/array-to-string.filter.test.js
bastion-6.1.14 test/components/formatters/array-to-string.filter.test.js