Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 8570b15

Browse files
committed
Fix tests
1 parent e22904b commit 8570b15

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var path = require('path');
22
var webpackConfig = require('./webpack.config.js');
33
webpackConfig.devtool = 'inline-source-map';
4-
webpackConfig.resolve.alias.bundle = path.join(__dirname, 'Resources/assets/js');
4+
webpackConfig.resolve.alias.bundle = path.join(__dirname, 'src/Resources/assets/js');
55
webpackConfig.entry = {};
66

77
module.exports = function(config) {
@@ -68,7 +68,7 @@ module.exports = function(config) {
6868

6969
// start these browsers
7070
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
71-
browsers: ['Chrome', 'Firefox', 'IE'],
71+
browsers: ['Chrome'],//, 'Firefox', 'IE'],
7272

7373

7474
// Continuous Integration mode

tests/js/adapter/fancytreeSpec.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,22 @@ describe('The Fancytree adapter', function() {
2929
node_name: 'cms',
3030
label: 'cms',
3131
path: '\/cms',
32+
descriptors: [],
3233
children: {
3334
content: {
3435
node_name: 'content',
3536
label: 'Content',
3637
path: '/cms/content',
38+
descriptors: [],
3739
children: {
3840
some_article: [],
3941
other_article: []
4042
}
4143
}
4244
}
4345
}
44-
}
46+
},
47+
descriptors: []
4548
})
4649
});
4750
});
@@ -81,7 +84,8 @@ describe('The Fancytree adapter', function() {
8184
data: 'homepage',
8285
attr: { id: '/cms/content/home' },
8386
state: null,
84-
children: []
87+
children: [],
88+
descriptors: []
8589
}])
8690
});
8791

@@ -159,10 +163,9 @@ describe('The Fancytree adapter', function() {
159163
it('can have another path as root node', function () {
160164
jasmine.Ajax.stubRequest(/^\/api/, 'path=/cms/content').andReturn({
161165
responseText: JSON.stringify([{
162-
data: 'homepage',
163166
attr: { id: '/cms/content/home' },
164-
state: null,
165-
children: []
167+
children: [],
168+
descriptors: []
166169
}])
167170
});
168171

@@ -220,11 +223,13 @@ describe('The Fancytree adapter', function() {
220223
node_name: 'cms',
221224
label: 'cms',
222225
path: '\/cms',
226+
descriptors: [],
223227
children: {
224228
content: {
225229
node_name: 'content',
226230
label: 'Content',
227231
path: '/cms/content',
232+
descriptors: [],
228233
children: {
229234
some_article: [],
230235
other_article: []
@@ -234,6 +239,7 @@ describe('The Fancytree adapter', function() {
234239
node_name: 'routes',
235240
label: 'Routes',
236241
path: '/cms/routes',
242+
descriptors: [],
237243
children: {}
238244
}
239245
}

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ var ExtractTextPlugin = require("extract-text-webpack-plugin");
44

55
module.exports = {
66
debug : true,
7-
context : path.join(__dirname, 'Resources/assets/'),
7+
context : path.join(__dirname, 'src/Resources/assets/'),
88
entry : {
99
fancytree : './js/jquery.cmf_tree.js'
1010
},
1111
output : {
12-
path : path.join(__dirname, 'Resources/public/js'),
12+
path : path.join(__dirname, 'src/Resources/public/js'),
1313
filename : 'cmf_tree_browser.[name].js'
1414
},
1515
externals : {

0 commit comments

Comments
 (0)