mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #33155 from bushee/master
jasmine-data_driven_tests - added missing typing for single array argument data
This commit is contained in:
+1
-1
@@ -34,6 +34,6 @@ interface JasmineDataDrivenTest {
|
||||
assertion: (arg0: T, arg1: U, done: () => void) => void): void;
|
||||
<T>(
|
||||
description: string,
|
||||
dataset: T[],
|
||||
dataset: T[] | Array<[T]>,
|
||||
assertion: (value: T, done: () => void) => void): void;
|
||||
}
|
||||
|
||||
@@ -37,6 +37,13 @@ xall("A data driven test can be pending",
|
||||
}
|
||||
);
|
||||
|
||||
all("A data set must consist of array-wrapped arrays, if test expects single array input",
|
||||
[[[1, 2]], [[3, 4]], [[5, 6]]],
|
||||
(numberArray: number[]) => {
|
||||
expect(numberArray.length).toBe(2);
|
||||
}
|
||||
);
|
||||
|
||||
describe("A suite", () => {
|
||||
let a: number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user