mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Refactor mocha tests kickstarter
This commit is contained in:
51
www/scripts/tests/common.js
Normal file
51
www/scripts/tests/common.js
Normal file
@@ -0,0 +1,51 @@
|
||||
require.config({
|
||||
baseUrl: "../../scripts",
|
||||
paths: {
|
||||
"chai" : "../../tmp-assets/chai/chai",
|
||||
"fixtures": "../../tmp-assets/js-fixtures/fixtures",
|
||||
"jquery": "../assets/jquery/jquery",
|
||||
"backbone": "../assets/backbone-amd/backbone",
|
||||
"i18n": "../assets/i18next/i18next.amd-1.6.3",
|
||||
"bootstrap": "../assets/bootstrap/js/bootstrap.min",
|
||||
"sinonchai": "../../tmp-assets/sinon-chai/lib/sinon-chai",
|
||||
"squire": "../../tmp-assets/squire/src/Squire",
|
||||
"jquery.ui": "../assets/jquery.ui/jquery-ui",
|
||||
"underscore": "../assets/underscore-amd/underscore",
|
||||
"jquery.ui.widget": "../assets/jquery-file-upload/jquery.ui.widget",
|
||||
"jquery.cookie": "../assets/jquery.cookie/jquery.cookie",
|
||||
"jquery.treeview": "../assets/jquery.treeview/jquery.treeview",
|
||||
"jquery.tooltip": "../assets/jquery.tooltip/jquery.tooltip",
|
||||
"blueimp.loadimage" : "../assets/blueimp-load-image/load-image",
|
||||
"jfu.iframe-transport": "../assets/jquery-file-upload/jquery.iframe-transport",
|
||||
"jfu.fileupload": "../assets/jquery-file-upload/jquery.fileupload"
|
||||
},
|
||||
shim: {
|
||||
"jquery.ui": {
|
||||
deps: ["jquery"]
|
||||
},
|
||||
"jquery.treeview": {
|
||||
deps: ['jquery', 'jquery.cookie'],
|
||||
exports: '$.fn.treeview'
|
||||
},
|
||||
bootstrap:{
|
||||
deps: ['jquery']
|
||||
},
|
||||
"jquery.cookie": {
|
||||
deps: ["jquery"],
|
||||
exports: '$.fn.cookie'
|
||||
},
|
||||
"jquery.tooltip": {
|
||||
deps: ["jquery"],
|
||||
exports: '$.fn.tooltip'
|
||||
},
|
||||
"jquery.ui": {
|
||||
deps: ["jquery"]
|
||||
},
|
||||
"jquery.ui.widget": {
|
||||
deps: ["jquery"]
|
||||
},
|
||||
"jfu.fileupload": {
|
||||
deps: ["jquery.ui.widget"]
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user