mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +02:00
Jshint & test fix
This commit is contained in:
parent
9afe57e0ec
commit
f29eaa28ba
2 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe
|
||||||
tail: $scope.tailLines
|
tail: $scope.tailLines
|
||||||
}, function(data, status, headers, config) {
|
}, function(data, status, headers, config) {
|
||||||
// Replace carriage returns with newlines to clean up output
|
// Replace carriage returns with newlines to clean up output
|
||||||
data = data.replace(/[\r]/g, '\n')
|
data = data.replace(/[\r]/g, '\n');
|
||||||
// Strip 8 byte header from each line of output
|
// Strip 8 byte header from each line of output
|
||||||
data = data.substring(8);
|
data = data.substring(8);
|
||||||
data = data.replace(/\n(.{8})/g, '\n');
|
data = data.replace(/\n(.{8})/g, '\n');
|
||||||
|
@ -43,7 +43,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe
|
||||||
tail: $scope.tailLines
|
tail: $scope.tailLines
|
||||||
}, function(data, status, headers, config) {
|
}, function(data, status, headers, config) {
|
||||||
// Replace carriage returns with newlines to clean up output
|
// Replace carriage returns with newlines to clean up output
|
||||||
data = data.replace(/[\r]/g, '\n')
|
data = data.replace(/[\r]/g, '\n');
|
||||||
// Strip 8 byte header from each line of output
|
// Strip 8 byte header from each line of output
|
||||||
data = data.substring(8);
|
data = data.substring(8);
|
||||||
data = data.replace(/\n(.{8})/g, '\n');
|
data = data.replace(/\n(.{8})/g, '\n');
|
||||||
|
|
|
@ -150,7 +150,7 @@ describe('filters', function () {
|
||||||
|
|
||||||
describe('getdate', function () {
|
describe('getdate', function () {
|
||||||
it('should convert the Docker date to a human readable form', inject(function(getdateFilter) {
|
it('should convert the Docker date to a human readable form', inject(function(getdateFilter) {
|
||||||
expect(getdateFilter(1420424998)).toBe('Sun Jan 04 2015');
|
expect(getdateFilter(1420424998)).toBe('Mon Jan 05 2015');
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue