UNPKG

open-easyrtc

Version:

Open-EasyRTC enables quick development of WebRTC

68 lines (57 loc) 1.73 kB
/* Script: jasmine.js This file is part of EasyRTC. */ /*global require */ require.config({ // Jasmin serves files under /, // which is the basePath from your html file baseUrl: '', paths: { // Externals 'jasmine': '../../node_modules/jasmine-core/lib/jasmine-core/jasmine', 'jasmine-html': '../../node_modules/jasmine-core/lib/jasmine-core/jasmine-html', 'boot': '../../node_modules/jasmine-core/lib/jasmine-core/boot', 'socket.io': '../../node_modules/socket.io-client/dist/socket.io', 'webrtc-adapter': '../../node_modules/webrtc-adapter/out/adapter', // Internals "easyrtc_lang": "../../api/easyrtc_lang", "easyrtc_int": "../../api/easyrtc_int", "easyrtc_ft": "../../api/easyrtc_ft", "easy_app": "../../api/easyrtc_app", "easyrtc": "../../api/easyrtc", // Internals // Spec "spec": "spec" }, // Dynamically load all spec modules deps: [ 'boot' ], shim: { 'jasmine': { exports: 'window.jasmineRequire' }, 'jasmine-html': { deps: ['jasmine'], exports: 'window.jasmineRequire' }, 'boot': { deps: ['jasmine', 'jasmine-html'], exports: 'window.jasmineRequire' }, 'webrtc-adapter': { exports: 'adapter' } }, // We have to kick of jasmine, as it is asynchronous callback: function () { // Load the specs require(['spec/index'], function () { // Initialize the HTML Reporter and execute the environment (setup by `boot.js`) window.onload(); }); } });