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