update tests to remove temp data

master
Valerie 2021-06-11 00:49:37 -04:00
parent 5991ee89bb
commit 2912b39d90
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +0,0 @@
{
"$$INSTANCE_ID": 0,
"foo": "bar",
"$$CLASS_NAME": "Test"
}

View File

@ -13,10 +13,12 @@ class Test extends Frigid {
constructor() {
super();
trackingData.constructorCalls ++;
console.log('construct')
}
[RESTORE]() {
trackingData.restoreCalls ++;
console.log('restore')
}
}
@ -39,4 +41,6 @@ expect(trackingData.restoreCalls).to.equal(1);
const retest = Test.create(filepath);
expect(trackingData.constructorCalls).to.equal(1);
expect(trackingData.restoreCalls).to.equal(2);
expect(trackingData.restoreCalls).to.equal(2);
unlinkSync(filepath)