mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
parent
a57fa9cfab
commit
710dba7f84
@ -1388,7 +1388,9 @@ angular.module('syncthing.core')
|
|||||||
_addressesStr: 'dynamic',
|
_addressesStr: 'dynamic',
|
||||||
compression: 'metadata',
|
compression: 'metadata',
|
||||||
introducer: false,
|
introducer: false,
|
||||||
selectedFolders: {}
|
selectedFolders: {},
|
||||||
|
pendingFolders: [],
|
||||||
|
ignoredFolders: []
|
||||||
};
|
};
|
||||||
$scope.editingExisting = false;
|
$scope.editingExisting = false;
|
||||||
$scope.deviceEditor.$setPristine();
|
$scope.deviceEditor.$setPristine();
|
||||||
|
@ -1073,6 +1073,26 @@ func TestFilterURLSchemePrefix(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestDeviceConfigObservedNotNil(t *testing.T) {
|
||||||
|
cfg := Configuration{
|
||||||
|
Devices: []DeviceConfiguration{
|
||||||
|
{},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
cfg.prepare(device1)
|
||||||
|
|
||||||
|
for _, dev := range cfg.Devices {
|
||||||
|
if dev.IgnoredFolders == nil {
|
||||||
|
t.Errorf("Ignored folders nil")
|
||||||
|
}
|
||||||
|
|
||||||
|
if dev.PendingFolders == nil {
|
||||||
|
t.Errorf("Pending folders nil")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// defaultConfigAsMap returns a valid default config as a JSON-decoded
|
// defaultConfigAsMap returns a valid default config as a JSON-decoded
|
||||||
// map[string]interface{}. This is useful to override random elements and
|
// map[string]interface{}. This is useful to override random elements and
|
||||||
// re-encode into JSON.
|
// re-encode into JSON.
|
||||||
|
Loading…
Reference in New Issue
Block a user