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

Commit

Permalink
add declarations for react, enzyme and its adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Oct 11, 2018
1 parent ff35447 commit b9645e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/background/api/shieldsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const getShieldSettingsForTabData = (tabData?: chrome.tabs.Tab) => {
]).then((details) => {
const fingerprinting = details[5].setting !== details[6].setting ? 'block_third_party' : details[5].setting
const cookies = details[7].setting !== details[8].setting ? 'block_third_party' : details[7].setting
console.log('whaaaaat', details)
const braveShields = isHttpOrHttps(origin) ? details[0].setting : 'block'
return {
url: url.href,
Expand Down
5 changes: 5 additions & 0 deletions app/types/global/tests.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
declare module 'deep-freeze-node'
declare module 'chromedriver'
declare module 'react'
declare module 'react-dom'
declare module 'react-redux'
declare module 'enzyme'
declare module 'enzyme-adapter-react-16'

// Used in tests
declare namespace NodeJS {
Expand Down

0 comments on commit b9645e3

Please sign in to comment.