mirror of https://github.com/sipwise/ngcp-csc.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
682 B
32 lines
682 B
var karmaLoadedFunction;
|
|
|
|
if (window.__karma__) {
|
|
// store karma function to start it later
|
|
// override it with dummy
|
|
karmaLoadedFunction = window.__karma__.loaded;
|
|
window.__karma__.loaded = function() {};
|
|
}
|
|
|
|
Ext.Loader.setConfig({
|
|
enabled: true,
|
|
paths: {
|
|
'NgcpCsc.view': 'classic/src/view'
|
|
},
|
|
disableCaching: true
|
|
});
|
|
|
|
console.log('Starting the test application...');
|
|
|
|
Ext.application({
|
|
name: 'NgcpCsc',
|
|
launch: function() {
|
|
|
|
if (window.__karma__) {
|
|
console.log('Starting the tests in specs');
|
|
|
|
window.__karma__.loaded = karmaLoadedFunction;
|
|
window.__karma__.loaded();
|
|
}
|
|
}
|
|
});
|