0

There are several expected conditions such as toBe, toEqual,... that we can using in a test case.

expect('an expression').toBe('a value');
expect('an expression').toEqual('a value');
expect('an expression').*('a value');

I need to know domain of keywords that i can using instead of *

Mostafa Farhani
  • 305
  • 2
  • 16

2 Answers2

1

Try the below expect statement

expect(array).toContain(member);

This statement will pass if the entire array contains a particular member.

Hope it helps you

Madhan Raj
  • 1,404
  • 1
  • 7
  • 13
1

If I understood your question correctly this page lists the jasmine matchers.

MkMan
  • 1,779
  • 1
  • 14
  • 27