Closed Bug 873750 Opened 12 years ago Closed 12 years ago

fix communications/contacts tests

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julienw, Assigned: julienw)

References

Details

Attachments

(2 files, 1 obsolete file)

Various mocks are incorrectly used.
Attached patch WIP patch v1 (obsolete) — Splinter Review
* use the correct name for the facebook mock * various fixes --- .../communications/contacts/test/unit/link_test.js | 22 +++++++++++--------- apps/communications/contacts/test/unit/mock_fb.js | 12 +++++------ apps/communications/test/unit/setup.js | 1 + 3 files changed, 19 insertions(+), 16 deletions(-) It seems we miss a file defining MockAllFacebookContacts.
Assignee: nobody → felash
Jose, I think we miss the mock file defining MockAllFacebookContacts. Could you either attach it to this bug or take my patch and finish it ?
Flags: needinfo?(jmcf)
asking for Cristian's review as I believe Julien is on bank holiday today.
Attachment #751342 - Attachment is obsolete: true
Attachment #751614 - Flags: review?(crdlc)
Flags: needinfo?(jmcf)
Comment on attachment 751614 [details] Fix the link tests by pointing to the proper Mockfb object :) perfect!
Attachment #751614 - Flags: review?(crdlc) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Attachment #751642 - Flags: review?(crdlc)
Attachment #751642 - Flags: review?(crdlc) → review+
I don't exactly understand why you haven't used my WIP patch ? It was fixing various problems (eg: Mockfb.utils is defined twice), it was using the new "load_body_html_helper" that makes it easier to create tests, and the only thing that was missing was the file mock_linked_contacts.js that you finally supplied in your latest patch, as I asked in my comment 2. I think it would have saved you lots of time (and my time doing the WIP patch would not have been wasted). Anyway I'm happy that the tests are fixed, thanks to you.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: