Sha256: d995ced9597fc8ffb83bee70f43d0e7b90f3f7531f56edac9ab8b3dc08f93587
Contents?: true
Size: 510 Bytes
Versions: 14
Compression:
Stored size: 510 Bytes
Contents
describe('Filter:as', function() { var array, scope = {}; beforeEach(module('Bastion.utils')); beforeEach(inject(function($filter) { array = [ {id: 1, name: 'one'}, {id: 2, name: 'two'}, {id: 3, name: 'three'} ]; scope.asFilter = $filter('as') })); it("should set items to the value of array", function() { expect(scope.asFilter(array, 'items')).toEqual(array); expect(scope.items).toEqual(array); }); });
Version data entries
14 entries across 14 versions & 1 rubygems