Repository: pixijs/pixijs
File: tests/renderering/sprite/Sprite.test.ts (TypeScript)

Code before:

            expect(sprite.view.containsPoint(point)).toBe(true);
        });

        it('should return true when point on left edge', () =>
        {
            const point = new Point(0, 15);

            expect(sprite.view.containsPoint(point)).toBe(true);
        });

        it('should return true when point on top edge', () =>
        {
            const point = new Point(10, 0);

            expect(sprite.view.containsPoint(point)).toBe(true);
        });

        it('should return false when point outside', () =>
        {
            const point = new Point(100, 100);

            expect(sprite.view.containsPoint(point)).toBe(false);
        });

        it.only('should return true when point inside a trimmed sprite', () =>
        {
            const textureSource = new TextureSource({
                width: 100,
                height: 100,
                resolution: 1,
            });

            const texture = new Texture({
                source: textureSource,
                layout: {
                    trim: new Rectangle(
                        0.01652892561983471,
                        0.014598540145985401,
                        0.36496350364963503,
                        0.4132231404958678
                    ),
                    frame: new Rectangle(
                        0.01652892561983471,
                        0.014598540145985401,
                        0.36496350364963503,
                        0.4132231404958678),
                    orig: new Rectangle(
                        0,
                        0,
                        1.094890510948905,

Review comment (suggestion):
```suggestion
        it('should return true when point inside a trimmed sprite', () =>
```

Code after:

            expect(sprite.view.containsPoint(point)).toBe(true);
        });

        it('should return true when point on left edge', () =>
        {
            const point = new Point(0, 15);

            expect(sprite.view.containsPoint(point)).toBe(true);
        });

        it('should return true when point on top edge', () =>
        {
            const point = new Point(10, 0);

            expect(sprite.view.containsPoint(point)).toBe(true);
        });

        it('should return false when point outside', () =>
        {
            const point = new Point(100, 100);

            expect(sprite.view.containsPoint(point)).toBe(false);
        });

        it('should return true when point inside a trimmed sprite', () =>
        {
            const textureSource = new TextureSource({
                width: 100,
                height: 100,
                resolution: 1,
            });

            const texture = new Texture({
                source: textureSource,
                layout: {
                    trim: new Rectangle(
                        0.01652892561983471,
                        0.014598540145985401,
                        0.36496350364963503,
                        0.4132231404958678
                    ),
                    frame: new Rectangle(
                        0.01652892561983471,
                        0.014598540145985401,
                        0.36496350364963503,
                        0.4132231404958678),
                    orig: new Rectangle(
                        0,
                        0,
                        1.094890510948905,