Skip to content

Commit

Permalink
Fixed single quotes that travis dislikes
Browse files Browse the repository at this point in the history
  • Loading branch information
puf committed Jun 2, 2015
1 parent 4ef3840 commit 2c01492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/reactfire.js
Expand Up @@ -128,7 +128,7 @@ var ReactFireMixin = {
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
var item = obj[key];
if (typeof(item) !== 'object') {
if (typeof(item) !== "object") {
item = { $value: item };
}
item.$id = key;
Expand Down
8 changes: 4 additions & 4 deletions tests/specs/reactfire.spec.js
Expand Up @@ -109,7 +109,7 @@ describe("ReactFireMixin Tests:", function() {
},

componentDidUpdate: function(prevProps, prevState) {
expect(this.state).toEqual({ items: [{ $id: 'a', $value: 1 }, { $id: 'b', $value: 2 }, { $id:'c', $value: 3 }] });
expect(this.state).toEqual({ items: [{ $id: "a", $value: 1 }, { $id: "b", $value: 2 }, { $id: "c", $value: 3 }] });
done();
},

Expand All @@ -134,7 +134,7 @@ describe("ReactFireMixin Tests:", function() {
},

componentDidUpdate: function(prevProps, prevState) {
expect(this.state).toEqual({ items: [{ $id: 'b', $value: 2 }, { $id:'c', $value: 3 }] });
expect(this.state).toEqual({ items: [{ $id: "b", $value: 2 }, { $id: "c", $value: 3 }] });
done();
},

Expand All @@ -156,7 +156,7 @@ describe("ReactFireMixin Tests:", function() {
firebaseRef.set({ first: { index: 1 }, second: { index: 2 }, third: { index: 3 } });
},
componentDidUpdate: function(prevProps, prevState) {
expect(this.state.items.map(function(item) { return item.$id; })).toEqual(['first', 'second', 'third']);
expect(this.state.items.map(function(item) { return item.$id; })).toEqual(["first", "second", "third"]);
done();
},
render: function() {
Expand All @@ -178,7 +178,7 @@ describe("ReactFireMixin Tests:", function() {
componentDidUpdate: function(prevProps, prevState) {
console.log(JSON.stringify(this.state));
expect(this.state.items.map(function(item) { return item.$id; })).toEqual([0, 1, 2]);
expect(this.state.items.map(function(item) { return item.$value; })).toEqual(['first', 'second', 'third']);
expect(this.state.items.map(function(item) { return item.$value; })).toEqual(["first", "second", "third"]);
done();
},
render: function() {
Expand Down

0 comments on commit 2c01492

Please sign in to comment.