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

Version Path
bastion-3.3.0 test/utils/as.filter.test.js
bastion-3.2.2 test/utils/as.filter.test.js
bastion-3.2.1 test/utils/as.filter.test.js
bastion-3.2.0 test/utils/as.filter.test.js
bastion-3.1.0 test/utils/as.filter.test.js
bastion-3.0.1 test/utils/as.filter.test.js
bastion-3.0.0 test/utils/as.filter.test.js
bastion-2.1.0 test/utils/as.filter.test.js
bastion-2.0.4 test/utils/as.filter.test.js
bastion-2.0.3 test/utils/as.filter.test.js
bastion-2.0.2 test/utils/as.filter.test.js
bastion-2.0.1 test/utils/as.filter.test.js
bastion-2.0.0 test/utils/as.filter.test.js
bastion-1.0.2 test/utils/as.filter.test.js