Skip to content

Commit

Permalink
tests [nfc]: Fix some bits of formatting in test/flow.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Jun 11, 2022
1 parent 1d71daf commit 7635920
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ describe("Flow type syntax", function () {
eol +
"};",
);
check("var methodAnonymousParameter: { m(number): void };")
check("var methodAnonymousParameter: { m(number): void };");

check(`declare var v: { get getter(): number };`);
check(`declare var v: { set setter(number): void };`);
Expand All @@ -159,7 +159,7 @@ describe("Flow type syntax", function () {

// Declare
check("declare var A: string;");
check("declare var methodAnonymousParameter: { m(number): void };")
check("declare var methodAnonymousParameter: { m(number): void };");

check("declare function foo(c: C): void;");
check("declare function foo(c: C, b: B): void;");
Expand All @@ -168,7 +168,7 @@ describe("Flow type syntax", function () {
check("declare function f(): () => void;");
check("declare function f(): (cb: () => void) => () => void;");
check("declare function f(m: (cb: () => void) => () => void): void;");
check("declare function anonymousParameter(number): void;")
check("declare function anonymousParameter(number): void;");
check("declare function f(): (() => void) => () => void;");
check("declare function f((() => void) => () => void): void;");
check("declare function f(): ('a' & mixed) => void;");
Expand Down

0 comments on commit 7635920

Please sign in to comment.