Answers for "node test unit"

-1

node test unit

var assert = require('assert');
describe('Array', function() {
  describe('#indexOf()', function() {
    it('should return -1 when the value is not present', function() {
      assert.equal([1, 2, 3].indexOf(4), -1);
    });
  });
});
Posted by: Guest on May-27-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language