fix js unit tests

This commit is contained in:
Morris Jobke 2016-01-06 20:06:04 +01:00
parent dbafec0c28
commit 06708cc172
1 changed files with 2 additions and 2 deletions

View File

@ -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
}); });
}); });
}); });