From 2912b39d901176d7394e8e9e3d47bd78e51964a3 Mon Sep 17 00:00:00 2001 From: Valerie Date: Fri, 11 Jun 2021 00:49:37 -0400 Subject: [PATCH] update tests to remove temp data --- test.state.json | 5 ----- test/Frigid.js | 6 +++++- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 test.state.json diff --git a/test.state.json b/test.state.json deleted file mode 100644 index 0530746..0000000 --- a/test.state.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$$INSTANCE_ID": 0, - "foo": "bar", - "$$CLASS_NAME": "Test" -} \ No newline at end of file diff --git a/test/Frigid.js b/test/Frigid.js index 868e5c1..e729986 100644 --- a/test/Frigid.js +++ b/test/Frigid.js @@ -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); \ No newline at end of file +expect(trackingData.restoreCalls).to.equal(2); + +unlinkSync(filepath) \ No newline at end of file