|
2 | 2 |
|
3 | 3 | // Lots of typed array globals are used in this file and ESLint is
|
4 | 4 | // not smart enough to understand the `typeof !== 'undefined'` guards.
|
5 |
| -/* eslint-env es6 */ |
6 |
| -/* globals Blob */ |
| 5 | +/* globals Blob, Uint8ClampedArray, Uint16Array, Uint32Array, Int8Array, Int16Array, Int32Array, |
| 6 | +Float32Array, Float64Array, */ |
7 | 7 |
|
8 | 8 | describe('angular', function() {
|
9 | 9 | var element, document;
|
@@ -568,29 +568,26 @@ describe('angular', function() {
|
568 | 568 | });
|
569 | 569 |
|
570 | 570 | it('should copy String() objects', function() {
|
571 |
| - /* eslint-disable no-new-wrappers */ |
| 571 | + // eslint-disable-next-line no-new-wrappers |
572 | 572 | var obj = new String('foo');
|
573 |
| - /* eslint-enable */ |
574 | 573 | var dest = copy(obj);
|
575 | 574 | expect(dest).not.toBe(obj);
|
576 | 575 | expect(isObject(dest)).toBe(true);
|
577 | 576 | expect(dest.valueOf()).toBe(obj.valueOf());
|
578 | 577 | });
|
579 | 578 |
|
580 | 579 | it('should copy Boolean() objects', function() {
|
581 |
| - /* eslint-disable no-new-wrappers */ |
| 580 | + // eslint-disable-next-line no-new-wrappers |
582 | 581 | var obj = new Boolean(true);
|
583 |
| - /* eslint-enable */ |
584 | 582 | var dest = copy(obj);
|
585 | 583 | expect(dest).not.toBe(obj);
|
586 | 584 | expect(isObject(dest)).toBe(true);
|
587 | 585 | expect(dest.valueOf()).toBe(obj.valueOf());
|
588 | 586 | });
|
589 | 587 |
|
590 | 588 | it('should copy Number() objects', function() {
|
591 |
| - /* eslint-disable no-new-wrappers */ |
| 589 | + // eslint-disable-next-line no-new-wrappers |
592 | 590 | var obj = new Number(42);
|
593 |
| - /* eslint-enable */ |
594 | 591 | var dest = copy(obj);
|
595 | 592 | expect(dest).not.toBe(obj);
|
596 | 593 | expect(isObject(dest)).toBe(true);
|
|
0 commit comments