mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Better output when assertion fails in smoke test.
This commit is contained in:
@@ -231,7 +231,14 @@ const path = require('path');
|
||||
|
||||
return promise;
|
||||
}, output => {
|
||||
return output.match("I can even write a reply");
|
||||
const expected = "I can even write a reply";
|
||||
const matched = output.match(expected);
|
||||
|
||||
if (!matched) {
|
||||
console.log(`Expected '${output}' to match '${expected}'`);
|
||||
}
|
||||
|
||||
return matched;
|
||||
});
|
||||
|
||||
await exec("submit the topic", () => {
|
||||
|
||||
Reference in New Issue
Block a user