mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-17 18:11:49 +01:00
35 lines
No EOL
1.4 KiB
JavaScript
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();
|
|
}));*/
|
|
}); |