UNPKG

silkroad-js

Version:

Silkroad SDK compatible with browser and nodejs

21 lines (20 loc) 681 B
var mocha = require("mocha"); var sinon = require("sinon"); var chai = require("chai"); console.log('pepe'); console.log('pepe'); describe('Array', function() { describe('#indexOf()', function() { it('should return -1 when the value is not present', function() { chai.expect([1, 2, 3].indexOf(-1)).to.be.equal([1, 2, 3].indexOf(5)); //expect.equal(-1, [1, 2, 3].indexOf(0)); }); }); }); describe('Array', function() { describe('pepe', function() { it('should return -1 when the value is not present', function() { chai.expect(-1).to.be.equal([1, 2, 3].indexOf(0)); }); }); });