Fix tests

// FREEBIE
This commit is contained in:
lilia 2015-09-17 11:40:19 -07:00
parent b617240338
commit 78d7296f84
3 changed files with 3 additions and 1 deletions

View file

@ -170,7 +170,7 @@
}
};
if (chrome) {
if (chrome.notifications) {
chrome.notifications.onClicked.addListener(function() {
chrome.notifications.clear('signal');
Whisper.Notifications.onclick();

View file

@ -110,6 +110,7 @@
<script type="text/javascript" src="../js/libphonenumber-util.js"></script>
<script type="text/javascript" src="../js/models/messages.js" data-cover></script>
<script type="text/javascript" src="../js/models/conversations.js" data-cover></script>
<script type="text/javascript" src="../js/conversation_controller.js" data-cover></script>
<script type="text/javascript" src="../js/chromium.js"></script>

View file

@ -9,6 +9,7 @@ describe('MessageView', function() {
conversationId: convo.id,
body: 'hello world',
type: 'outgoing',
source: '+14158675309',
received_at: new Date().getTime()
});