Skip to content

Commit

Permalink
Merge pull request brave#9749 from NejcZdovc/testTabs
Browse files Browse the repository at this point in the history
Fixes tabsTab unit test
  • Loading branch information
NejcZdovc committed Jun 28, 2017
2 parents 08d61da + d8140c6 commit 22c07e6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/unit/app/renderer/components/preferences/tabsTabTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,23 @@ const {tabCloseAction} = require('../../../../../../app/common/constants/setting
const {tabsPerTabPageActiveOption, tabCloseActionActiveOption} = require('../../../../../lib/selectors')
const assert = require('assert')
const fakeElectron = require('../../../../lib/fakeElectron')
let settingDefaultValue
let TabsTab
require('../../../../braveUnit')

describe('TabsTab component', function () {
let settingDefaultValue, TabsTab

before(function () {
mockery.enable({
warnOnReplace: false,
warnOnUnregistered: false,
useCleanCache: true
})
mockery.registerMock('../../../extensions/brave/img/caret_down_grey.svg', 'caret_down_grey.svg')

mockery.registerMock('electron', fakeElectron)
mockery.registerMock('../../../../js/settings', {
getSetting: () => settingDefaultValue
})
window.chrome = fakeElectron
TabsTab = require('../../../../../../app/renderer/components/preferences/TabsTab')
TabsTab = require('../../../../../../app/renderer/components/preferences/tabsTab')
})
after(function () {
mockery.disable()
Expand Down

0 comments on commit 22c07e6

Please sign in to comment.