mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
EXPERIMENTAL: more js tests logs (#7620)
This commit is contained in:
parent
bf3c781f26
commit
bed3560d61
|
@ -101,7 +101,12 @@ function resetSite(siteSettings, extras) {
|
|||
Discourse.Site.resetCurrent(Discourse.Site.create(siteAttrs));
|
||||
}
|
||||
|
||||
QUnit.testDone(function(ctx) {
|
||||
console.log("-- " + ctx.runtime);
|
||||
});
|
||||
|
||||
QUnit.testStart(function(ctx) {
|
||||
console.log(ctx.module + " -> " + ctx.name);
|
||||
server = pretender.default();
|
||||
|
||||
if (ctx.module.startsWith(acceptanceModulePrefix)) {
|
||||
|
@ -111,7 +116,11 @@ QUnit.testStart(function(ctx) {
|
|||
success: pretender.success
|
||||
};
|
||||
|
||||
applyPretender(ctx.module.replace(acceptanceModulePrefix, ""), server, helper);
|
||||
applyPretender(
|
||||
ctx.module.replace(acceptanceModulePrefix, ""),
|
||||
server,
|
||||
helper
|
||||
);
|
||||
}
|
||||
|
||||
// Allow our tests to change site settings and have them reset before the next test
|
||||
|
|
Loading…
Reference in New Issue
Block a user