Generally we use qunit assertions for web's test .If any module are not working proper then we use qunit assertions in odoo server.Assertions having following list .
1-async()
Instruct QUnit to wait for an asynchronous operation.
2- deepEqual()
A deep recursive comparison, working on primitive types, arrays, objects, regular expressions, dates and functions.
3-equal()
A non-strict comparison, roughly equivalent to JUnits assertEquals.
4- expect()
Specify how many assertions are expected to run within a test.
5-notDeepEqual()
An inverted deep recursive comparison, working on primitive types, arrays, objects, regular expressions, dates and functions.
Note-they have the same keys/number of elements, and the values match.
0 Comment(s)