fix js unit tests
This commit is contained in:
parent
dbafec0c28
commit
06708cc172
|
@ -254,13 +254,13 @@ describe('OCA.External.Settings tests', function() {
|
||||||
// defaults to true
|
// defaults to true
|
||||||
var $field = $td.find('.dropdown [name=previews]');
|
var $field = $td.find('.dropdown [name=previews]');
|
||||||
expect($field.prop('checked')).toEqual(true);
|
expect($field.prop('checked')).toEqual(true);
|
||||||
$td.find('.dropdown [name=filesystem_check_changes]').val(2);
|
$td.find('.dropdown [name=filesystem_check_changes]').val(0);
|
||||||
$('body').mouseup();
|
$('body').mouseup();
|
||||||
|
|
||||||
expect(JSON.parse($tr.find('input.mountOptions').val())).toEqual({
|
expect(JSON.parse($tr.find('input.mountOptions').val())).toEqual({
|
||||||
encrypt: true,
|
encrypt: true,
|
||||||
previews: true,
|
previews: true,
|
||||||
filesystem_check_changes: 2
|
filesystem_check_changes: 0
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue