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

Commit

Permalink
Fixes tabsTab unit test
Browse files Browse the repository at this point in the history
Auditors: @bsclifton @cezaraugusto

Test Plan:
- unit test fix
  • Loading branch information
NejcZdovc committed Jun 28, 2017
1 parent 08d61da commit d8140c6
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 d8140c6

Please sign in to comment.