Skip to content

[mat-sort] causing warning when running unit tests: WARN: 'The "longpress" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.' #14668

@philmayfield

Description

@philmayfield

What is the expected behavior?

Expect to not see a warning running a test

What is the current behavior?

Seeing a warning running a unit test

What are the steps to reproduce?

I cant seem to figuire out how to run a Jasmine test with StackBlitz, but I copied the example from the sorting section, and created the this unit test.

Which does pass, but throws the warning:

WARN: 'The "longpress" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 7.1.4 (down to 7.0.0)
Material 7.2.0
Jasmine 3.3.0
Karma 3.1.4

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions