Fix JS unit tests
This commit is contained in:
parent
8f4b780a90
commit
6a2e7632d1
|
@ -624,8 +624,6 @@ MountConfigListView.prototype = _.extend({
|
|||
this._allAuthMechanisms = this.$el.find('#addMountPoint .authentication').data('mechanisms');
|
||||
|
||||
this._initEvents();
|
||||
|
||||
this.loadStorages();
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -1194,6 +1192,7 @@ $(document).ready(function() {
|
|||
var mountConfigListView = new MountConfigListView($('#externalStorage'), {
|
||||
encryptionEnabled: encryptionEnabled
|
||||
});
|
||||
mountConfigListView.loadStorages();
|
||||
|
||||
$('#sslCertificate').on('click', 'td.remove>img', function() {
|
||||
var $tr = $(this).closest('tr');
|
||||
|
|
|
@ -54,7 +54,8 @@ describe('OCA.External.Settings tests', function() {
|
|||
// within the DOM by the server template
|
||||
$('#externalStorage .selectBackend:first').data('configurations', {
|
||||
'\\OC\\TestBackend': {
|
||||
'backend': 'Test Backend Name',
|
||||
'identifier': '\\OC\\TestBackend',
|
||||
'name': 'Test Backend',
|
||||
'configuration': {
|
||||
'field1': 'Display Name 1',
|
||||
'field2': '&Display Name 2'
|
||||
|
@ -65,7 +66,8 @@ describe('OCA.External.Settings tests', function() {
|
|||
'priority': 11
|
||||
},
|
||||
'\\OC\\AnotherTestBackend': {
|
||||
'backend': 'Another Test Backend Name',
|
||||
'identifier': '\\OC\\AnotherTestBackend',
|
||||
'name': 'Another Test Backend',
|
||||
'configuration': {
|
||||
'field1': 'Display Name 1',
|
||||
'field2': '&Display Name 2'
|
||||
|
@ -80,6 +82,7 @@ describe('OCA.External.Settings tests', function() {
|
|||
|
||||
$('#externalStorage #addMountPoint .authentication:first').data('mechanisms', {
|
||||
'mechanism1': {
|
||||
'identifier': 'mechanism1',
|
||||
'name': 'Mechanism 1',
|
||||
'configuration': {
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue