Skip to content

Commit

Permalink
Fix syntax errors in tests (palantir#3488)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajafff authored and adidahiya committed Nov 15, 2017
1 parent b9b26f4 commit 87906ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/rules/await-promise/for-await-of/test.ts.lint
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function correct3(foo: AsyncIterableIterator<string> | AsyncIterableIterat
for await (const element of foo) {}
}

async function incorrect(foo: <Array<Promise<string>>) {
async function incorrect(foo: Array<Promise<string>) {
for await (const element of foo) {}
~~~ [0]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class DoubleClass {

class SecondNestedClass {
~~~~~ [STATIC_ONLY]
static number myNum = 0;
static myNum: number = 0;
}
}
}
Expand Down Expand Up @@ -153,4 +153,4 @@ export class EClass {

[CONSTRUCTOR_ONLY]: Every member of this class is a constructor. Use functions instead.
[STATIC_ONLY]: Every member of this class is static. Use namespaces or plain objects instead.
[EMPTY_CLASS]: This class has no members.
[EMPTY_CLASS]: This class has no members.

0 comments on commit 87906ab

Please sign in to comment.