remove failing badDefault

This commit is contained in:
Shelley Vohr 2017-12-12 13:39:38 -05:00
parent 8b447b9291
commit 6252ce466c
No known key found for this signature in database
GPG key ID: F13993A75599653C
2 changed files with 8 additions and 2 deletions

View file

@ -152,6 +152,13 @@ void SystemPreferences::RegisterDefaults(mate::Arguments* args) {
} else {
@try {
NSDictionary* dict = DictionaryValueToNSDictionary(value);
// for (id key in dict) {
// id value = [dict objectForKey:key];
// if (value == nil) {
// printf("HELLO\n");
// args->ThrowError("Invalid userDefault data provided");
// }
// }
[[NSUserDefaults standardUserDefaults] registerDefaults:dict];
} @catch (NSException* exception) {
args->ThrowError("Invalid userDefault data provided");

View file

@ -2,7 +2,7 @@ const assert = require('assert')
const {remote} = require('electron')
const {systemPreferences} = remote
describe.only('systemPreferences module', () => {
describe('systemPreferences module', () => {
describe('systemPreferences.getAccentColor', () => {
before(function () {
if (process.platform !== 'win32') {
@ -66,7 +66,6 @@ describe.only('systemPreferences module', () => {
1,
null,
new Date(),
{ 'one': null }
]
for (const badDefault of badDefaults) {