diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit_tests/settings_test.coffee | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit_tests/settings_test.coffee b/tests/unit_tests/settings_test.coffee index 4b6f3498..5d24c7f2 100644 --- a/tests/unit_tests/settings_test.coffee +++ b/tests/unit_tests/settings_test.coffee @@ -13,6 +13,10 @@ context "settings", setup -> stub global, 'localStorage', {} + should "all settings stored in localStorage must be JSONified strings", -> + Settings.set 'dummy', "" + assert.equal localStorage.dummy, '""' + should "obtain defaults if no key is stored", -> assert.isFalse Settings.has 'scrollStepSize' assert.equal Settings.get('scrollStepSize'), 60 |
