Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Commit

Permalink
Removed unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluma committed Dec 13, 2014
1 parent bf0ed20 commit 008cf3a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/connect-mixin-browser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*jshint node: true */
/*global global, describe, it, afterEach, before, after */
'use strict';
var React = require('react/addons');
var TestUtils = React.addons.TestUtils;
var expect = require('expect.js');
var connect = require('../').connect;
var noop = function () {};
Expand Down
1 change: 1 addition & 0 deletions test/connect-mixin-server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*jshint node: true */
/*global global, describe, it, before */
'use strict';
var React = require('react');
Expand Down
13 changes: 5 additions & 8 deletions test/connect-prop-mixin-browser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*jshint node: true */
/*global global, describe, it, afterEach, before, after */
'use strict';
var React = require('react/addons');
var TestUtils = React.addons.TestUtils;
var expect = require('expect.js');
var connectProp = require('../').connectProp;
var noop = function () {};
Expand Down Expand Up @@ -182,7 +182,7 @@ describe('connectProp (in a browser)', function () {
mixins: [
connectProp('meh', 'foo')
],
componentWillUpdate: function (props, state) {
componentWillUpdate: function () {
expect(called).to.be(true);
done();
},
Expand All @@ -197,7 +197,6 @@ describe('connectProp (in a browser)', function () {
});
it('registers a new listener', function (done) {
var called = false;
var listener = null;
var store1 = function () {};
store1.unlisten = noop;
store1.listen = noop;
Expand All @@ -216,7 +215,7 @@ describe('connectProp (in a browser)', function () {
mixins: [
connectProp('meh', 'foo')
],
componentWillUpdate: function (props, state) {
componentWillUpdate: function () {
expect(called).to.be(true);
done();
},
Expand Down Expand Up @@ -246,7 +245,7 @@ describe('connectProp (in a browser)', function () {
mixins: [
connectProp('meh', 'foo')
],
componentWillUpdate: function (props, state) {
componentWillUpdate: function () {
expect(called).to.be(false);
done();
},
Expand Down Expand Up @@ -342,7 +341,6 @@ describe('connectProp (in a browser)', function () {
});
it('registers a listener', function (done) {
var called = false;
var listener = null;
var store = function () {};
store.listen = function (fn, ctx) {
expect(fn).to.be.a('function');
Expand All @@ -358,7 +356,7 @@ describe('connectProp (in a browser)', function () {
mixins: [
connectProp('meh', 'foo')
],
componentWillUpdate: function (props, state) {
componentWillUpdate: function () {
expect(called).to.be(true);
done();
},
Expand All @@ -373,7 +371,6 @@ describe('connectProp (in a browser)', function () {
});
describe('if the prop is still missing', function () {
it('does nothing', function (done) {
var called = false;
var rerender = function () {
rerender = noop;
React.render(React.createElement(Component, {x: 'y'}), global.document.body);
Expand Down
1 change: 1 addition & 0 deletions test/connect-prop-mixin-server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*jshint node: true */
/*global global, describe, it, before */
'use strict';
var React = require('react');
Expand Down
1 change: 1 addition & 0 deletions test/create-actions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*jshint node: true */
/*global describe, it, after */
'use strict';
var expect = require('expect.js');
Expand Down
2 changes: 1 addition & 1 deletion test/listento-mixin-browser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*jshint node: true */
/*global global, describe, it, afterEach, before, after */
'use strict';
var React = require('react/addons');
var TestUtils = React.addons.TestUtils;
var expect = require('expect.js');
var listenTo = require('../').listenTo;
var noop = function () {};
Expand Down
1 change: 1 addition & 0 deletions test/listento-mixin-server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*jshint node: true */
/*global global, describe, it, before */
'use strict';
var React = require('react');
Expand Down

0 comments on commit 008cf3a

Please sign in to comment.