Skip to content

Commit

Permalink
test(signals tests): fix signals tests, change deprecated v-remove to…
Browse files Browse the repository at this point in the history
… onremove lifecycle
  • Loading branch information
Masquerade-Circus committed Jan 26, 2020
1 parent 496f3ce commit 3da0f10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/signals_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('Hooks like pattern', () => {
let interval = setInterval(() => {
count.value = count.value + 1;
}, ms);
return () => <div v-remove={() => clearInterval(interval)}>{count.value}</div>;
return () => <div onremove={() => clearInterval(interval)}>{count.value}</div>;
};

let result = v.mount('div', Counter(1000));
Expand All @@ -142,7 +142,7 @@ describe('Hooks like pattern', () => {
}, delay);
return () => clearInterval(interval);
});
return () => <div v-remove={interval.cleanup}>{count.value}</div>;
return () => <div onremove={interval.cleanup}>{count.value}</div>;
};

let result = v.mount('div', Counter(1000));
Expand All @@ -165,7 +165,7 @@ describe('Hooks like pattern', () => {
}, state.value.delay);
return () => clearInterval(interval);
});
return () => <div v-remove={interval.cleanup}>{state.value.count}</div>;
return () => <div onremove={interval.cleanup}>{state.value.count}</div>;
};

let result = v.mount('div', Counter(1000));
Expand Down

0 comments on commit 3da0f10

Please sign in to comment.