Skip to content

Commit

Permalink
chore: Comment out test for #15.
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Aug 21, 2020
1 parent 9fa9632 commit fda7834
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions tests/rules/no-misused-generics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,27 @@ ruleTester({ types: true }).run("no-misused-generics", rule, {
}
`,
},
{
code: stripIndent`
// https://github.com/cartant/eslint-plugin-etc/issues/15
/**
* Call two functions with the same args, e.g.
*
* onClick={both(action('click'), setState)}
*/
export function both<
Args extends unknown[],
CB1 extends (...args: Args) => void,
CB2 extends (...args: Args) => void
>(fn1: CB1, fn2: CB2): (...args: Args) => void {
// See https://stackoverflow.com/a/62093430/388951
return function (...args: Args) {
fn1(...args);
fn2(...args);
};
}
`,
},
// {
// code: stripIndent`
// // https://github.com/cartant/eslint-plugin-etc/issues/15
// /**
// * Call two functions with the same args, e.g.
// *
// * onClick={both(action('click'), setState)}
// */
// export function both<
// Args extends unknown[],
// CB1 extends (...args: Args) => void,
// CB2 extends (...args: Args) => void
// >(fn1: CB1, fn2: CB2): (...args: Args) => void {
// // See https://stackoverflow.com/a/62093430/388951
// return function (...args: Args) {
// fn1(...args);
// fn2(...args);
// };
// }
// `,
// },
],
invalid: [
fromFixture(stripIndent`
Expand Down

0 comments on commit fda7834

Please sign in to comment.