You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('insures that new dependencies are updated before dependee',function(t){
varorder='';
vara=o(0);
varb=S(functionx(){
order+='b';
console.log('B');
returna()+1;
});
varc=S(functiony(){
order+='c';
console.log('C');
returnb()||d();
});
functionz(){
order+='d';
console.log('D');
returna()+10;
}
vard=S(z);
t.equal(order,'bcd','1st bcd test');
order='';
a(-1);
t.equal(b(),0,'b equals 0');
t.equal(order,'bcd','2nd bcd test');
t.equal(d(),9,'d equals 9');
t.equal(c(),9,'c equals d(9)');
order='';
a(0);
t.equal(order,'bc','3rd bcd test');
t.equal(c(),1);
t.end();
});
At line 264 we are basically just updating the observable from -1 to 0. The D computed depends only on this observable and returns observable+10. Then at line 266 we say the D computed shouldn't have run, why shouldn't it?
The text was updated successfully, but these errors were encountered:
The following test looks buggy to me:
sinuous/packages/sinuous/observable/test/child.js
Lines 230 to 269 in ece2c65
At line 264 we are basically just updating the observable from -1 to 0. The D computed depends only on this observable and returns observable+10. Then at line 266 we say the D computed shouldn't have run, why shouldn't it?
The text was updated successfully, but these errors were encountered: