Skip to content

Commit

Permalink
Merge pull request brave#8951 from brave/fix/improve-8894
Browse files Browse the repository at this point in the history
Address feedback in PR brave#8894
  • Loading branch information
bbondy authored May 19, 2017
2 parents 5fc6f05 + a524bd8 commit 00e2a0c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/browser/reducers/sitesReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

const appConstants = require('../../../js/constants/appConstants')
const filtering = require('../../filtering')
const siteCache = require('../../../js/state/siteCache')
const siteCache = require('../../common/state/siteCache')
const siteTags = require('../../../js/constants/siteTags')
const siteUtil = require('../../../js/state/siteUtil')
const syncActions = require('../../../js/actions/syncActions')
Expand Down
4 changes: 2 additions & 2 deletions js/state/siteCache.js → app/common/state/siteCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

'use strict'
const Immutable = require('immutable')
const siteUtil = require('./siteUtil')
const UrlUtil = require('../lib/urlutil')
const siteUtil = require('../../../js/state/siteUtil')
const UrlUtil = require('../../../js/lib/urlutil')

const createLocationSiteKeysCache = (state) => {
state = state.set('locationSiteKeysCache', new Immutable.Map())
Expand Down
1 change: 0 additions & 1 deletion js/about/newtab.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ class NewTabPage extends React.Component {
}).size > 0
}
isBookmarked (siteProps) {
// XXX: Fixme, not passing state in!
return siteUtil.isSiteBookmarked(this.topSites, siteProps)
}
get gridLayout () {
Expand Down
2 changes: 1 addition & 1 deletion js/state/siteUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'use strict'
const Immutable = require('immutable')
const normalizeUrl = require('normalize-url')
const siteCache = require('./siteCache')
const siteCache = require('../../app/common/state/siteCache')
const siteTags = require('../constants/siteTags')
const settings = require('../constants/settings')
const getSetting = require('../settings').getSetting
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/* global describe, it */

const siteTags = require('../../../js/constants/siteTags')
const siteCache = require('../../../js/state/siteCache')
const siteUtil = require('../../../js/state/siteUtil')
const siteTags = require('../../../../../js/constants/siteTags')
const siteCache = require('../../../../../app/common/state/siteCache')
const siteUtil = require('../../../../../js/state/siteUtil')
const assert = require('assert')
const Immutable = require('immutable')
// const mockery = require('mockery')
// const settings = require('../../../js/constants/settings')

describe('siteCache', function () {
const testUrl1 = 'https://brave.com/'
Expand Down

0 comments on commit 00e2a0c

Please sign in to comment.