Namespace JsMockito.Verifiers
Defined in: jsmockito.js.
Method Summary
Method Detail
JsMockito.Verifiers.never()
Test that a invocation never occurred. For example:
verify(mock, never()).method();
See:
JsMockito.Verifiers.times(0) |
JsMockito.Verifiers.zeroInteractions()
Test that no interaction were made on the mock. For example:
verify(mock, zeroInteractions());
See:
JsMockito.verifyZeroInteractions() |
JsMockito.Verifiers.noMoreInteractions()
Test that no further interactions remain unverified on the mock. For example:
verify(mock, noMoreInteractions());
See:
JsMockito.verifyNoMoreInteractions() |
JsMockito.Verifiers.times(wanted)
Test that an invocation occurred a specific number of times. For example:
verify(mock, times(2)).method();
Parameters:
wanted | The number of desired invocations |
JsMockito.Verifiers.once()
Test that an invocation occurred exactly once. For example:
verify(mock, once()).method();This is the default verifier.
See:
JsMockito.Verifiers.times(1) |