mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
More Markdown refactoring - fixed bug with Pagedown not showing on user profile - replaced jQuery occurrences with $.
This commit is contained in:
@ -12,13 +12,13 @@ describe("Discourse.Onebox", function() {
|
||||
it("Stops rapid calls with cache true", function() {
|
||||
Discourse.Onebox.load(anchor, true);
|
||||
Discourse.Onebox.load(anchor, true);
|
||||
expect(jQuery.ajax.calls.length).toBe(1);
|
||||
expect($.ajax.calls.length).toBe(1);
|
||||
});
|
||||
|
||||
it("Stops rapid calls with cache false", function() {
|
||||
Discourse.Onebox.load(anchor, false);
|
||||
Discourse.Onebox.load(anchor, false);
|
||||
expect(jQuery.ajax.calls.length).toBe(1);
|
||||
expect($.ajax.calls.length).toBe(1);
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user