Browse Source

Fix JSUnit tests

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tags/v12.0.0beta1
Morris Jobke 7 years ago
parent
commit
4d7dee5996
No account linked to committer's email address
3 changed files with 13 additions and 1 deletions
  1. 1
    0
      .gitignore
  2. 10
    0
      settings/tests/js/appsSpec.js
  3. 2
    1
      tests/karma.config.js

+ 1
- 0
.gitignore View File

# Tests - auto-generated files # Tests - auto-generated files
/data-autotest /data-autotest
/tests/coverage* /tests/coverage*
/tests/css
/tests/karma-coverage /tests/karma-coverage
/tests/autoconfig* /tests/autoconfig*
/tests/autotest* /tests/autotest*

+ 10
- 0
settings/tests/js/appsSpec.js View File

{ {
id: 'foo', id: 'foo',
name: 'Foo app', name: 'Foo app',
description: 'Hello',
level: 0, level: 0,
author: 'foo' author: 'foo'
}, },
{ {
id: 'alpha', id: 'alpha',
name: 'Alpha app', name: 'Alpha app',
description: 'Hello',
level: 300, level: 300,
author: ['alpha', 'beta'] author: ['alpha', 'beta']
}, },
{ {
id: 'nolevel', id: 'nolevel',
name: 'No level', name: 'No level',
description: 'Hello',
author: 'bar' author: 'bar'
}, },
{ {
id: 'zork', id: 'zork',
name: 'Some famous adventure game', name: 'Some famous adventure game',
description: 'Hello',
level: 200, level: 200,
author: 'baz' author: 'baz'


{ {
id: 'delta', id: 'delta',
name: 'Mathematical symbol', name: 'Mathematical symbol',
description: 'Hello',
level: 200, level: 200,
author: 'foobar' author: 'foobar'
} }
'foo': { 'foo': {
id: 'foo', id: 'foo',
name: 'Foo app', name: 'Foo app',
description: 'Hello',
level: 0, level: 0,
author: 'foo' author: 'foo'
}, },
'alpha': { 'alpha': {
id: 'alpha', id: 'alpha',
name: 'Alpha app', name: 'Alpha app',
description: 'Hello',
level: 300, level: 300,
author: ['alpha', 'beta'] author: ['alpha', 'beta']
}, },
'nolevel': { 'nolevel': {
id: 'nolevel', id: 'nolevel',
name: 'No level', name: 'No level',
description: 'Hello',
author: 'bar' author: 'bar'
}, },
'zork': { 'zork': {
id: 'zork', id: 'zork',
name: 'Some famous adventure game', name: 'Some famous adventure game',
description: 'Hello',
level: 200, level: 200,
author: 'baz', author: 'baz',
}, },
'delta': { 'delta': {
id: 'delta', id: 'delta',
name: 'Mathematical symbol', name: 'Mathematical symbol',
description: 'Hello',
level: 200, level: 200,
author: 'foobar' author: 'foobar'
} }

+ 2
- 1
tests/karma.config.js View File

name: 'settings', name: 'settings',
srcFiles: [ srcFiles: [
'settings/js/apps.js', 'settings/js/apps.js',
'settings/js/users/deleteHandler.js'
'settings/js/users/deleteHandler.js',
'core/vendor/marked/marked.min.js'
], ],
testFiles: [ testFiles: [
'settings/tests/js/appsSpec.js', 'settings/tests/js/appsSpec.js',

Loading…
Cancel
Save