abled', function () {     describe('extensionId has been installed', function () {       describe('extensionId has not been enabled', function () {         before(function () {           this.state = defaultAppState.setIn(['extensions', 'abcd'], Immutable.fromJS({             name: 'brave',             id: 'abcd',             url: 'some_url',             path: 'some/path',             version: '0.0',             description: 'a more awesomer extension',             manifest: {               manifest_value: 'test0'             }           }))           this.state = extensionState.extensionEnabled(this.state, Immutable.fromJS({extensionId: 'abcd'}))         })          it('should set the enabled property to true', function () {           let extension = this.state.getIn(['extensions', 'abcd'])           assert.equal(extension.get('enabled'), true)         })          it('should not alter any other properties', function () {           let extension = this.state.getIn(['extensions', 'abcd'])           assert.equal(extension.get('name'), 'brave')           assert.equal(extension.get('id'), 'abcd')           assert.equal(extension.get('url'), 'some_url')           assert.equal(extension.get('path'), 'some/path')           assert.equal(extension.get('version'), '0.0')           assert.equal(extension.get('description'), 'a more awesomer extension')           assert(Immutable.is(extension.get('manifest'), Immutable.fromJS({manifest_value: 'test0'})))         })          commonTests()       })        describe('extensionId is enabled', function () {         before(function () {           this.state = defaultAppState.setIn(['extensions', 'abcd'], Immutable.fromJS({             name: 'brave',             id: 'abcd',             url: 'some_url',             path: 'some/path',             version: '0.0',             description: 'a more awesomer extension',             manifest: {               manifest_value: 'test0'             },             enabled: true           }))           this.state = extensionState.extensionEnabled(this.state, Immutable.fromJS({extensionId: 'abcd'}))         })          it('should not update the state', function () {           Immutable.is(this.state, defaultAppState)         })       })        describe('extensionId is disabled', function () {         before(function () {           this.state = defaultAppState.setIn(['extensions', 'abcd'], Immutable.fromJS({             name: 'brave',             id: 'abcd',             url: 'some_url',             path: 'some/path',             version: '0.0',             description: 'a more awesomer extension',             manifest: {               manifest_value: 'test0'             },             enabled: false           }))           this.state = extensionState.extensionEnabled(this.state, Immutable.fromJS({extensionId: 'abcd'}))         })          it('should set the enabled property to true', function () {           let extension = this.state.getIn(['extensions', 'abcd'])           assert.equal(extension.get('enabled'), true)         })          it('should not alter any other properties', function () {           let extension = this.state.getIn(['extensions', 'abcd'])           assert.equal(extension.get('name'), 'brave')           assert.equal(extension.get('id'), 'abcd')           assert.equal(extension.get('url'), 'some_url')           assert.equal(extension.get('path'), 'some/path')           assert.equal(extension.get('version'), '0.0')           assert.equal(extension.get('description'), 'a more awesomer extension')           assert(Immutable.is(extension.get('manifest'), Immutable.fromJS({manifest_value: 'test0'})))         })          commonTests()       })     }) // extensionEnabled extensionId has been installed      describe('extensionId has not been installed', function () {       before(function () {         this.state = extensionState.extensionInstalled(defaultAppState, Immutable.fromJS({           extensionId: 'abcd',           installInfo: {             name: 'brave',             id: 'abcd',             url: 'some_url',             path: 'some/path',             version: '0.0',             description: 'a more awesomer extension',             manifest: {               manifest_value: 'test0'             }           }         }))       })        it('should not update the state', function () {         Immutable.is(this.state, defaultAppState)       })        commonTests()     })   })  