Skip to content

Commit

Permalink
jshint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wkeese committed Sep 10, 2015
1 parent 7cabf1f commit 9c61b60
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions tests/unit/Invalidating.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ define([
invalidating = new (dcl(Invalidating, {
foo: undefined,
bar: undefined,
computeProperties: function(oldValues){
computeProperties: function (oldValues) {
log.push({method: "computeProperties", oldValues: oldValues});
},
initializeRendering: function(){
initializeRendering: function () {
log.push({method: "initializeRendering"});
},
refreshRendering: function(oldValues){
refreshRendering: function (oldValues) {
log.push({method: "refreshRendering", oldValues: oldValues});
}
}))({
Expand Down Expand Up @@ -47,14 +47,13 @@ define([
}), 5);
},
"Property validation": function () {
var computePropertiesCallCount = 0,
dfd = this.async(1000),
var dfd = this.async(1000),
cpLog = [], rrLog = [],
invalidating = new (dcl(Invalidating, {
foo: undefined,
computeProperties: function (oldValues) {
cpLog.push(oldValues);
if(this.foo < 0){
if (this.foo < 0) {
this.foo = 0;
this.discardComputing();
}
Expand Down Expand Up @@ -117,12 +116,12 @@ define([
}), 5);
},
"Synchronous change delivery": function () {
var cpLog = [], rrLog = [],
var rrLog = [],
invalidating = new (dcl(Invalidating, {
foo: undefined,
bar: undefined,
computeProperties: function (oldValues) {
if (this.foo === "Foo1"){
computeProperties: function () {
if (this.foo === "Foo1") {
this.bar = "Bar1";
this.deliver();
}
Expand Down Expand Up @@ -167,17 +166,17 @@ define([
foo: undefined,
bar: undefined,
template: undefined,
computeProperties: function(oldValues){
computeProperties: function () {
log.push("computeProperties");
},
shouldInitializeRendering: function (oldValues) {
log.push("shouldInitializeRendering");
return "template" in oldValues;
},
initializeRendering: function(){
initializeRendering: function () {
log.push("initializeRendering");
},
refreshRendering: function(oldValues){
refreshRendering: function () {
log.push("refreshRendering");
}
}))({
Expand Down

0 comments on commit 9c61b60

Please sign in to comment.