blob: 3202b02c33e23196e70c7bfcc42f226480f17ef6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
describe("Issue #3382", () => {
test("Creating an array with simple storage (<= 200 initial elements)", () => {
var a = Array(200);
expect(a).toHaveLength(200);
expect(a.push("foo")).toBe(201);
expect(a).toHaveLength(201);
});
test("Creating an array with generic storage (> 200 initial elements)", () => {
var a = Array(201);
expect(a).toHaveLength(201);
expect(a.push("foo")).toBe(202);
expect(a).toHaveLength(202);
});
});
|