Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fix tests -- fixed registerMock paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Suguru Hirahara committed Apr 24, 2017
1 parent f011302 commit e7bdb3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/unit/about/preferencesTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Preferences component', function () {
mockery.registerMock('../../less/forms.less', {})
mockery.registerMock('../../less/button.less', {})
mockery.registerMock('../../node_modules/font-awesome/css/font-awesome.css', {})
mockery.registerMock('../../extensions/brave/img/caret_down_grey.svg', 'caret_down_grey.svg')
mockery.registerMock('../../../extensions/brave/img/caret_down_grey.svg')
mockery.registerMock('../../../extensions/brave/img/preferences/browser_prefs_general.svg', 'browser_prefs_general.svg')
mockery.registerMock('../../../extensions/brave/img/preferences/browser_prefs_search.svg', 'browser_prefs_search.svg')
mockery.registerMock('../../../extensions/brave/img/preferences/browser_prefs_tabs.svg', 'browser_prefs_tabs.svg')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ describe('Navigator component unit tests', function () {
mockery.registerMock('../../extensions/brave/img/urlbar/browser_URL_fund_yes_verified.svg', {})
mockery.registerMock('../../extensions/brave/img/urlbar/browser_URL_fund_no.svg', {})
mockery.registerMock('../../extensions/brave/img/urlbar/browser_URL_fund_yes.svg', {})
mockery.registerMock('../../extensions/brave/img/caret_down_grey.svg', 'caret_down_grey.svg')
mockery.registerMock('../../extensions/brave/img/tabs/new_session.svg')
mockery.registerMock('../../../extensions/brave/img/caret_down_grey.svg')
mockery.registerMock('../../../../img/url-bar-no-script.svg', {})
mockery.registerMock('electron', require('../../../../lib/fakeElectron'))
Navigator = require('../../../../../../app/renderer/components/navigation/navigator')
Expand Down
2 changes: 1 addition & 1 deletion test/unit/app/renderer/paymentsTabTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('PaymentsTab component', function () {
mockery.registerMock('../../less/forms.less', {})
mockery.registerMock('../../less/button.less', {})
mockery.registerMock('../../node_modules/font-awesome/css/font-awesome.css', {})
mockery.registerMock('../../extensions/brave/img/caret_down_grey.svg', 'caret_down_grey.svg')
mockery.registerMock('../../../extensions/brave/img/caret_down_grey.svg', 'caret_down_grey.svg')
mockery.registerMock('../../../extensions/brave/img/preferences/browser_prefs_general.svg', 'browser_prefs_general.svg')
mockery.registerMock('../../../extensions/brave/img/preferences/browser_prefs_search.svg', 'browser_prefs_search.svg')
mockery.registerMock('../../../extensions/brave/img/preferences/browser_prefs_tabs.svg', 'browser_prefs_tabs.svg')
Expand Down

0 comments on commit e7bdb3c

Please sign in to comment.