Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

chai assert

var assert = chai.assert;

assert.typeOf(foo, 'string');
assert.equal(foo, 'bar');
assert.lengthOf(foo, 3)
assert.property(tea, 'flavors');
assert.lengthOf(tea.flavors, 3);
Source by www.chaijs.com #
 
PREVIOUS NEXT
Tagged: #chai #assert
ADD COMMENT
Topic
Name
5+6 =