array-index-number-whitespace.js 178 B

1234567
  1. test("indexing the array doesn't strip whitespace if it's a number", () => {
  2. var a = [];
  3. a[1] = 1;
  4. expect(a["1"]).toBe(1);
  5. expect(a[" 1 "]).toBeUndefined();
  6. });