How to say "any [type of data]" in angular Jasmine unit test

Viewed 20

I'd like to write a test that looks something like this:

expect(myService.myMethod()).toEqual({
      theDate: any Date,
      title: 'My Title',
...
    });

Is there a way in Jasmine to expect against type? So: any string, any number, any Date, etc? Is that legal, or a bad idea?

1 Answers
Related