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

Bug 1039643: Write unit tests for contacts.js #22377

Merged
merged 1 commit into from Aug 7, 2014

Conversation

tamarahills
Copy link
Contributor

No description provided.

@try-server-hook
Copy link

tamarahills tamarahills started tests. Results


'use strict';

mocha.setup({ globals: ['alert'] });
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not needed.

@try-server-hook
Copy link

tamarahills tamarahills started tests. Results

require('/shared/test/unit/mocks/mock_async_storage.js');
require('/shared//test/unit/mocks/mock_simple_phone_matcher.js');
require('/apps/communications/contacts/test/unit/mock_fb.js');
require('/shared/test/unit/mocks/mock_notification.js');
Copy link
Contributor

Choose a reason for hiding this comment

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

When you remove mocks from the MocksHelper list, you should also remove them from the requires. Audio and notification are still around.

@try-server-hook
Copy link

tamarahills tamarahills started tests. Results

rik added a commit that referenced this pull request Aug 7, 2014
Bug 1039643: Write unit tests for contacts.js r=rik
@rik rik merged commit 60271a3 into mozilla-b2g:master Aug 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants