Sha256: 77453dfd844c2f71846f1754abbcadc7a2d065e6d463ef49f1fed45d81159769
Contents?: true
Size: 1.07 KB
Versions: 21
Compression:
Stored size: 1.07 KB
Contents
/** * Copyright 2014 Red Hat, Inc. * * This software is licensed to you under the GNU General Public * License as published by the Free Software Foundation; either version * 2 of the License (GPLv2) or (at your option) any later version. * There is NO WARRANTY for this software, express or implied, * including the implied warranties of MERCHANTABILITY, * NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should * have received a copy of GPLv2 along with this software; if not, see * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. */ 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
21 entries across 21 versions & 1 rubygems