Pibd-21_Alekseev_I.S._Inter.../IP/node_modules/secure-compare/test.js

20 lines
276 B
JavaScript
Raw Normal View History

2023-12-03 16:59:28 +04:00
/**
* Dependencies
*/
var compare = require('./');
require('chai').should();
/**
* Tests
*/
describe ('secure-compare', function () {
it ('compare', function () {
compare('abc', 'abc').should.equal(true);
compare('abc', 'ab').should.equal(false);
});
});