Skip to content

Commit

Permalink
Fix test_symbol for typedoc 0.27.6 (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane authored Dec 31, 2024
1 parent 6b206b0 commit 29a1701
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/test_build_ts/source/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ export function exampleFunction() {}
export async function asyncFunction() {}

export class Iterable {
*[Symbol.iterator](): Iterator<number, any, undefined> {
*[Symbol.iterator](): Iterator<number, string, undefined> {
yield 1;
yield 2;
yield 3;
return "abc";
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_build_ts/test_build_ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class Iterable()
Iterable.[Symbol․iterator]()
Returns:
Iterator<number, any, undefined>
Iterator<number, string, undefined>
"""
)
self._file_contents_eq("symbol", expected)
Expand Down

0 comments on commit 29a1701

Please sign in to comment.