Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fix UpdateNotification.Locale Fallback tests #7819

Merged
merged 1 commit into from
May 15, 2014

Conversation

marcelgerber
Copy link
Contributor

As explained in #7811, the tests for that particular feature are succeeding right now while they shouldn't.
This fixes it - they'll fail right now on master, but as soon as release is merged back into master (including b325668), they'll work again.
@ingorichter

@@ -218,13 +218,16 @@ define(function (require, exports, module) {

function setupAjaxSpy(defaultUpdateUrl) {
var jq = spyOn(testWindow.$, "ajax").andCallFake(function (req) {
var d = $.Deferred();
var d = new $.Deferred();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

little nit: new is optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it doesn't matter, right? I just did a quick search through the code and saw that mostly we use new $.Deferred();

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our style guide explicitly says we should always use new

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, and roughly 50% of our code doesn't use it either. I agree that we should keep it consistent.

ingorichter added a commit that referenced this pull request May 15, 2014
Fix UpdateNotification.Locale Fallback tests
@ingorichter ingorichter merged commit fb64ff0 into adobe:master May 15, 2014
@marcelgerber marcelgerber deleted the update-notification-test branch May 15, 2014 19:52
@peterflynn
Copy link
Member

@ingorichter Is this ready to merge or did you not do a full formal code review on it yet?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants