2013-05-11 14:20:07 +02:00
|
|
|
require(["jquery", "converse", "mock", "spec/MainSpec", "spec/ChatRoomSpec"], function($, converse, mock_connection) {
|
|
|
|
// Set up converse.js
|
|
|
|
window.localStorage.clear();
|
|
|
|
converse.initialize({
|
|
|
|
prebind: false,
|
|
|
|
xhr_user_search: false,
|
|
|
|
auto_subscribe: false,
|
|
|
|
animate: false
|
2013-04-15 10:01:07 +02:00
|
|
|
});
|
2013-05-11 14:20:07 +02:00
|
|
|
converse.onConnected(mock_connection);
|
|
|
|
|
|
|
|
// Jasmine stuff
|
|
|
|
var jasmineEnv = jasmine.getEnv();
|
2013-05-14 09:44:30 +02:00
|
|
|
jasmineEnv.updateInterval = 250;
|
2013-05-11 14:20:07 +02:00
|
|
|
var htmlReporter = new jasmine.HtmlReporter();
|
|
|
|
jasmineEnv.addReporter(htmlReporter);
|
|
|
|
jasmineEnv.specFilter = function(spec) {
|
|
|
|
return htmlReporter.specFilter(spec);
|
|
|
|
};
|
|
|
|
jasmineEnv.execute();
|
2013-04-15 10:01:07 +02:00
|
|
|
});
|