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 runnner just end the work. No errors, no warning, no success log.
metatests.test('Read deep non-table identifiers',async(test)=>{constsheet=newSheet();sheet.cells['item.price.usd']=100;sheet.cells['item.price.uah']=200;test.strictSame(sheet.values['item.price'],{usd: 100,uah: 200});// -> should fail, but it isn'ttest.strictSame(1,0);// -> obviously should fail, but it isn'ttest.end();});
But test will fail, if we call test.end(); with a delay
setTimeout(test.end,0)
(Suppose, that this is incorect way for metatests at all, but it shows an error)
/home/eternal/dev/opensource/metarhia/metacalc/lib/sheet.js:28consttargetProp=`${prop}.${currentProp}`;^
TypeError: CannotconvertaSymbolvaluetoastringatObject.get(/home/eternal/dev/opensource/metarhia/metacalc/lib/sheet.js:28:37)atProxy.toString(<anonymous>)
at Object.isError [as identify] (/home/eternal/dev/opensource/metarhia/metacalc/node_modules/metatests/lib/utils.js:45:50)
at /home/eternal/dev/opensource/metarhia/metacalc/node_modules/yaml/dist/Schema-88e323a7.js:396:42
at Array.find (<anonymous>)
at findTagObject (/home/eternal/dev/opensource/metarhia/metacalc/node_modules/yaml/dist/Schema-88e323a7.js:396:15)
at createNode (/home/eternal/dev/opensource/metarhia/metacalc/node_modules/yaml/dist/Schema-88e323a7.js:409:16)
at Schema.createNode (/home/eternal/dev/opensource/metarhia/metacalc/node_modules/yaml/dist/Schema-88e323a7.js:507:12)
at stringify (/home/eternal/dev/opensource/metarhia/metacalc/node_modules/yaml/dist/Document-9b4560a1.js:190:19)
at Document.toString (/home/eternal/dev/opensource/metarhia/metacalc/node_modules/yaml/dist/Document-9b4560a1.js:737:20)
Test runnner just end the work. No errors, no warning, no success log.
But test will fail, if we call
test.end();
with a delay(Suppose, that this is incorect way for metatests at all, but it shows an error)
Reproducing: https://github.com/Eternal-Rise/metacalc/blob/false-positive-without-error/test/unit.js
Most likely refers to #269, but here is no error by default, so created new issue
The text was updated successfully, but these errors were encountered: