diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-07-02 17:22:56 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-07-02 17:22:56 +0200 |
commit | d5b7e40c1906494699c6c29b082636132744f095 (patch) | |
tree | 0a3dad35779b90fb35ea8b7e1d299142efefcda8 /settings | |
parent | 2f6dc8743e559383d743a57a835575f5753b0668 (diff) | |
download | nextcloud-server-d5b7e40c1906494699c6c29b082636132744f095.tar.gz nextcloud-server-d5b7e40c1906494699c6c29b082636132744f095.zip |
Unit test for app list
Diffstat (limited to 'settings')
-rw-r--r-- | settings/tests/js/appsSpec.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/settings/tests/js/appsSpec.js b/settings/tests/js/appsSpec.js index 60e3692def4..907d441ff4d 100644 --- a/settings/tests/js/appsSpec.js +++ b/settings/tests/js/appsSpec.js @@ -159,6 +159,32 @@ describe('OC.Settings.Apps tests', function() { var results = getResultsFromDom(); expect(results.length).toEqual(5); expect(results).toEqual(['alpha', 'delta', 'zork', 'foo', 'nolevel']); + expect(OC.Settings.Apps.State.apps).toEqual({ + 'foo': { + id: 'foo', + name: 'Foo app', + level: 0 + }, + 'alpha': { + id: 'alpha', + name: 'Alpha app', + level: 300 + }, + 'nolevel': { + id: 'nolevel', + name: 'No level' + }, + 'zork': { + id: 'zork', + name: 'Some famous adventure game', + level: 200 + }, + 'delta': { + id: 'delta', + name: 'Mathematical symbol', + level: 200 + } + }); }); }); |