-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
51 lines (46 loc) · 1.08 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* @license Copyright (c) 2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
'use strict';
const path = require( 'path' );
/**
* Adds necessary file paths to files array which results in Karma including them in the test context.
*
* @param {Array} files Array of files loaded by Karma.
* @returns {undefined} undefined
*/
function setup( files ) {
files.unshift( {
pattern: path.join( __dirname, 'src/guest.js' ),
included: true,
served: true,
watched: false,
nocache: false
} );
files.unshift( {
pattern: path.join( __dirname, 'src/host.js' ),
included: true,
served: true,
watched: false,
nocache: false
} );
files.unshift( {
pattern: path.join( __dirname, 'src/queue.js' ),
included: true,
served: true,
watched: false,
nocache: false
} );
files.unshift( {
pattern: path.join( __dirname, 'src/iframe.html' ),
included: false,
served: true,
watched: false,
nocache: false
} );
}
setup.$inject = [ 'config.files' ];
module.exports = {
'framework:ckeditor4-bender-iframes': [ 'factory', setup ]
};