ledgerrb/public/app/bower_components/ng-table/test/tableControllerSpec.js
2014-08-09 18:41:31 +02:00

35 lines
No EOL
1.4 KiB
JavaScript

describe('ngTableParams', function () {
var scope, ctrl, params, data = [
{name: "Moroni", age: 50, role: 'Administrator'},
{name: "Tiancum", age: 43, role: 'Administrator'},
{name: "Jacob", age: 27, role: 'Administrator'},
{name: "Nephi", age: 29, role: 'Moderator'},
{name: "Enos", age: 34, role: 'User'},
{name: "Tiancum", age: 43, role: 'User'},
{name: "Jacob", age: 27, role: 'User'},
{name: "Nephi", age: 29, role: 'Moderator'},
{name: "Enos", age: 34, role: 'User'},
{name: "Tiancum", age: 43, role: 'Moderator'},
{name: "Jacob", age: 27, role: 'User'},
{name: "Nephi", age: 29, role: 'User'},
{name: "Enos", age: 34, role: 'Moderator'},
{name: "Tiancum", age: 43, role: 'User'},
{name: "Jacob", age: 27, role: 'User'},
{name: "Nephi", age: 29, role: 'User'},
{name: "Enos", age: 34, role: 'User'}
];
beforeEach(module('ngTable'));
/*beforeEach(inject(function ($controller, $rootScope, ngTableParams) {
scope = $rootScope.$new();
params = scope.params = new ngTableParams();
ctrl = $controller(ngTableController, {
$scope: scope
});
}));
it('ngTableController should have parameters', inject(function (ngTableParams) {
var params = new ngTableParams();
expect(ngTableParams).toBeDefined();
}));*/
});