Skip to content

Commit

Permalink
Add support for chai's assert.isEmpty and assert.isNotEmpty.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=168749369
  • Loading branch information
godinger authored and lauraharker committed Sep 14, 2017
1 parent 4f01232 commit e788b7f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contrib/externs/chai-3.5.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,20 @@ var assert = {};
*/
assert.fail = function(actual, expected, opt_message, opt_operator) {};


/**
* @param {Object|Array|string|Map|Set} object
* @param {string=} opt_message
*/
assert.isEmpty = function(object, opt_message) {};

/**
* @param {Object|Array|string|Map|Set} object
* @param {string=} opt_message
*/
assert.isNotEmpty = function(object, opt_message) {};


/**
* @param {*} object
* @param {string=} opt_message
Expand Down

0 comments on commit e788b7f

Please sign in to comment.