mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
15 lines
No EOL
453 B
JavaScript
15 lines
No EOL
453 B
JavaScript
function integration(name) {
|
|
module(name, {
|
|
setup: function() {
|
|
sinon.stub(Discourse.ScrollingDOMMethods, "bindOnScroll");
|
|
sinon.stub(Discourse.ScrollingDOMMethods, "unbindOnScroll");
|
|
Ember.run(Discourse, Discourse.advanceReadiness);
|
|
},
|
|
|
|
teardown: function() {
|
|
Discourse.reset();
|
|
Discourse.ScrollingDOMMethods.bindOnScroll.restore();
|
|
Discourse.ScrollingDOMMethods.unbindOnScroll.restore();
|
|
}
|
|
});
|
|
} |