mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 21:21:19 +08:00
DEV: Mark flaky tests as pending
This commit is contained in:
@ -50,6 +50,12 @@ export default function(name, opts) {
|
||||
andThen(() => {
|
||||
return this.render(opts.template);
|
||||
});
|
||||
andThen(() => opts.test.call(this, assert));
|
||||
andThen(() => {
|
||||
if (opts.skip) {
|
||||
assert.expect(0);
|
||||
} else {
|
||||
opts.test.call(this, assert);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user