1.

Specify Some Of The Assert Methods In Qunit?

Answer»
  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 JUnit's 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.
  6. notEqual() : A non-strict comparison, checking for inequality.
  7. notOk() :A boolean check, inverse of ok() and CommonJS's assert.ok(), and equivalent to JUnit's assertFalse(). Passes if the first argument is false.
  8. notPropEqual() : A strict comparison of an object's own properties, checking for inequality.
  9. notStrictEqual() : A strict comparison, checking for inequality.
  10. Ok() : A boolean check, equivalent to CommonJS's assert.ok() and JUnit's assertTrue(). Passes if the first argument is true.
  11. propEqual() :A strict type and value comparison of an object's own properties.
  12. push() : Report the result of a custom assertion.
  13. strictEqual() : A strict type and value comparison.
  14. throws() : Test if a callback throws an exception, and optionally compare the thrown error.



Discussion

No Comment Found