Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
cb9a1673
Commit
cb9a1673
authored
May 13, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up test runner config and remove unnecessary stuff
parent
7a990ae0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
86 deletions
+25
-86
tests/runner.js
tests/runner.js
+25
-86
No files found.
tests/runner.js
View file @
cb9a1673
var
config
=
{
baseUrl
:
'
../
'
,
paths
:
{
"
console-reporter
"
:
"
tests/console-reporter
"
,
"
es6-promise
"
:
"
node_modules/es6-promise/dist/es6-promise.auto
"
,
"
jquery
"
:
"
node_modules/jquery/dist/jquery
"
,
"
lodash
"
:
"
node_modules/lodash/lodash
"
,
"
lodash.converter
"
:
"
3rdparty/lodash.fp
"
,
"
lodash.fp
"
:
"
src/lodash.fp
"
,
"
lodash.noconflict
"
:
"
node_modules/@converse/headless/lodash.noconflict
"
,
"
pluggable
"
:
"
node_modules/pluggable.js/dist/pluggable
"
,
"
sizzle
"
:
"
node_modules/sizzle/dist/sizzle
"
,
"
underscore
"
:
"
src/underscore-shim
"
,
'
console-reporter
'
:
'
tests/console-reporter
'
,
'
es6-promise
'
:
'
node_modules/es6-promise/dist/es6-promise.auto
'
,
'
jasmine-console
'
:
'
node_modules/jasmine-core/lib/console/console
'
,
'
jasmine-core
'
:
'
node_modules/jasmine-core/lib/jasmine-core/jasmine
'
,
'
jasmine-html
'
:
'
node_modules/jasmine-core/lib/jasmine-core/jasmine-html
'
,
'
jasmine
'
:
'
node_modules/jasmine-core/lib/jasmine-core/boot
'
,
'
mock
'
:
'
tests/mock
'
,
'
sinon
'
:
'
node_modules/sinon/pkg/sinon
'
,
'
test-utils
'
:
'
tests/utils
'
,
'
transcripts
'
:
'
converse-logs/converse-logs
'
,
'
wait-until-promise
'
:
'
node_modules/wait-until-promise/index
'
},
map
:
{
// '*' means all modules will get the '*.noconflict' version
// as their dependency.
'
*
'
:
{
'
backbone
'
:
'
backbone.noconflict
'
,
'
lodash
'
:
'
lodash.noconflict
'
},
// '*.noconflict' wants the real module
// If this line was not here, there would
// be an unresolvable cyclic dependency.
'
backbone.noconflict
'
:
{
'
backbone
'
:
'
backbone
'
},
'
lodash.noconflict
'
:
{
'
lodash
'
:
'
lodash
'
}
},
lodashLoader
:
{
// Configuration for requirejs-tpl
// Use Mustache style syntax for variable interpolation
root
:
"
src/templates/
"
,
templateSettings
:
{
"
escape
"
:
/
\
{
\
{
\
{([
\
s
\
S
]
+
?)
\
}
\
}
\
}
/g
,
"
evaluate
"
:
/
\{\[([\s\S]
+
?)\]\}
/g
,
"
interpolate
"
:
/
\
{
\
{([
\
s
\
S
]
+
?)
\
}
\
}
/g
,
// By default, template places the values from your data in the
// local scope via the with statement. However, you can specify
// a single variable name with the variable setting. This can
// significantly improve the speed at which a template is able
// to render.
"
variable
"
:
'
o
'
}
},
// define module dependencies for modules not using define
shim
:
{
'
backbone.orderedlistview
'
:
{
deps
:
[
'
backbone.nativeview
'
]
},
'
backbone.overview
'
:
{
deps
:
[
'
backbone.nativeview
'
]
},
'
backbone.vdomview
'
:
{
deps
:
[
'
backbone.nativeview
'
]
},
'
emojione
'
:
{
exports
:
'
emojione
'
},
'
xss
'
:
{
'
init
'
:
function
(
xss_noconflict
)
{
return
{
filterXSS
:
window
.
filterXSS
,
filterCSS
:
window
.
filterCSS
}
}
}
}
};
// Extra test dependencies
config
.
paths
.
mock
=
"
tests/mock
"
;
config
.
paths
[
'
wait-until-promise
'
]
=
"
node_modules/wait-until-promise/index
"
;
config
.
paths
[
'
test-utils
'
]
=
"
tests/utils
"
;
config
.
paths
.
sinon
=
"
node_modules/sinon/pkg/sinon
"
;
config
.
paths
.
transcripts
=
"
converse-logs/converse-logs
"
;
config
.
paths
[
"
jasmine-core
"
]
=
"
node_modules/jasmine-core/lib/jasmine-core/jasmine
"
;
config
.
paths
.
jasmine
=
"
node_modules/jasmine-core/lib/jasmine-core/boot
"
;
config
.
paths
[
"
jasmine-console
"
]
=
"
node_modules/jasmine-core/lib/console/console
"
;
config
.
paths
[
"
jasmine-html
"
]
=
"
node_modules/jasmine-core/lib/jasmine-core/jasmine-html
"
;
config
.
shim
.
jasmine
=
{
exports
:
'
window.jasmineRequire
'
};
config
.
shim
[
'
jasmine-html
'
]
=
{
'
jasmine-html
'
:
{
deps
:
[
'
jasmine-core
'
],
exports
:
'
window.jasmineRequire
'
};
config
.
shim
[
'
jasmine-console
'
]
=
{
},
'
jasmine-console
'
:
{
deps
:
[
'
jasmine-core
'
],
exports
:
'
window.jasmineRequire
'
};
config
.
shim
.
jasmine
=
{
},
'
jasmine
'
:
{
deps
:
[
'
jasmine-core
'
,
'
jasmine-html
'
,
'
jasmine-console
'
],
exports
:
'
window.jasmine
'
},
}
};
require
.
config
(
config
);
...
...
@@ -121,18 +64,14 @@ var specs = [
"
spec/http-file-upload
"
];
require
([
'
console-reporter
'
,
'
mock
'
,
'
sinon
'
,
'
wait-until-promise
'
,
'
pluggable
'
],
function
(
ConsoleReporter
,
mock
,
sinon
,
waitUntilPromise
,
pluggable
)
{
require
([
'
console-reporter
'
,
'
mock
'
,
'
sinon
'
,
'
wait-until-promise
'
],
(
ConsoleReporter
,
mock
,
sinon
,
waitUntilPromise
)
=>
{
if
(
window
.
view_mode
)
{
mock
.
view_mode
=
window
.
view_mode
;
}
window
.
sinon
=
sinon
;
window
.
waitUntilPromise
=
waitUntilPromise
.
default
;
window
.
localStorage
.
clear
();
window
.
sessionStorage
.
clear
();
// Load the specs
require
(
specs
,
function
(
jasmine
)
{
require
(
specs
,
jasmine
=>
{
jasmine
.
DEFAULT_TIMEOUT_INTERVAL
=
7000
;
const
jasmineEnv
=
jasmine
.
getEnv
();
jasmineEnv
.
addReporter
(
new
ConsoleReporter
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment