1) Fixed jasmine test cases.

2) Bootstarp4 toggle size should be mini for triggers
This commit is contained in:
Aditya Toshniwal 2019-02-04 17:43:19 +05:30 committed by Akshay Joshi
parent 605b1f4799
commit d2ee5c4e82
2 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@ define('pgadmin.node.trigger', [
offText: gettext('No'),
onColor: 'success',
offColor: 'primary',
size: 'mini',
width: null,
height: null,
},

View File

@ -15,8 +15,8 @@ describe('getEpoch', function () {
});
it('should return epoch for a date passed', function () {
let someDate = new Date(2019,1,1,10,20,30,40),
someDateEpoch = 1548996630;
let someDate = new Date('Feb 01 2019 10:20:30 GMT0000'),
someDateEpoch = 1549016430;
expect(getEpoch(new Date(someDate))).toEqual(someDateEpoch);
});