mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
Fix test for new Grouping<TValue> definition
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ describe("Linq.js tests", function () {
|
||||
it("Grouping Methods", function () {
|
||||
expect(Enumerable.From(["a","aa","aaa","a","a","aaa"])
|
||||
.GroupBy((item:string) => item.length)
|
||||
.Select((g: linq.Grouping) => { return { key: g.Key(), count: g.Count() }; })
|
||||
.Select((g: linq.Grouping<string>) => { return { key: g.Key(), count: g.Count() }; })
|
||||
.OrderBy(g => g.key)
|
||||
.Select(g => g.key+":"+g.count)
|
||||
.ToString(",")).toBe("1:3,2:1,3:2");
|
||||
|
||||
Reference in New Issue
Block a user