Skip to content

Commit 9d837e8

Browse files
committed
fix misnamed variable in #136
1 parent 9e581de commit 9d837e8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/core/test/signal.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ describe("computed()", () => {
218218
it("should not allow a computed signal to become a direct dependency of itself", () => {
219219
const spy = sinon.spy(() => {
220220
try {
221-
a.value
221+
a.value;
222222
} catch {
223223
// pass
224224
}
225-
})
225+
});
226226
const a = computed(spy);
227227
a.value;
228228
expect(() => effect(() => a.value)).to.not.throw();
@@ -344,21 +344,21 @@ describe("computed()", () => {
344344
});
345345

346346
e.value;
347-
spy.resetHistory()
347+
spy.resetHistory();
348348

349349
a.value = 2;
350350
b.value = 2;
351351
c.value = 2;
352352
e.value;
353353
expect(spy).to.be.calledOnce;
354-
spy.resetHistory()
354+
spy.resetHistory();
355355

356356
a.value = -1;
357357
b.value = -1;
358358
c.value = -1;
359359
e.value;
360360
expect(spy).not.to.be.called;
361-
spy.resetHistory()
361+
spy.resetHistory();
362362
});
363363

364364
describe("graph updates", () => {
@@ -404,7 +404,7 @@ describe("computed()", () => {
404404
compute.resetHistory();
405405

406406
a.value = 4;
407-
e.value;
407+
d.value;
408408
expect(compute).to.have.been.calledOnce;
409409
});
410410

0 commit comments

Comments
 (0)