Sha256: 56628d78879a092b048ab9c9421a335f6b31e24470c79e66dcc1457efb231082

Contents?: true

Size: 530 Bytes

Versions: 70

Compression:

Stored size: 530 Bytes

Contents

describe('Filter:unlimitedFilter', function() {
    var unlimitedFilter;

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

    beforeEach(module(function($provide) {
        $provide.value('translate',  function(a) {return a});
    }));

    beforeEach(inject(function($filter) {
        unlimitedFilter = $filter('unlimitedFilter');
    }));

    it("ensures correctly transforms limit", function() {
        expect(unlimitedFilter(3, true)).toBe('Unlimited');
        expect(unlimitedFilter(2)).toBe('2');
    });

});

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
bastion-6.1.23 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.22 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.21 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.20 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.19 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.18 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.17 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.16 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.15 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.14 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.13 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.12 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.11 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.10 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.9 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.8 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.7 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.6 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.5 test/components/formatters/unlimited-filter.filter.test.js
bastion-6.1.4 test/components/formatters/unlimited-filter.filter.test.js