Skip to content

Commit

Permalink
Add reuseMemo test case
Browse files Browse the repository at this point in the history
  • Loading branch information
morsdyce committed Apr 14, 2019
1 parent 76e61b9 commit d4f9639
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/fixtures/add-debug-reuse-memo/.babelrc
@@ -0,0 +1,8 @@
{
"plugins": [
[
"../../../src"
],
["@babel/plugin-proposal-class-properties", { "loose": true }]
]
}
11 changes: 11 additions & 0 deletions test/fixtures/add-debug-reuse-memo/code.js
@@ -0,0 +1,11 @@
import { reuseMemo } from "reusable";

const counter = () => {
reuseMemo(() => {

}, []);

const MemoTest = reuseMemo(() => {

}, []);
}
6 changes: 6 additions & 0 deletions test/fixtures/add-debug-reuse-memo/output.js
@@ -0,0 +1,6 @@
import { reuseMemo } from "reusable";

const counter = () => {
reuseMemo(() => {}, [], "counter Effect (0)");
const MemoTest = reuseMemo(() => {}, [], "MemoTest");
};

0 comments on commit d4f9639

Please sign in to comment.