index.spec.js 426 B

123456789101112131415161718
  1. 'use strict';
  2. var equal = require('../index');
  3. var tests = require('./tests');
  4. var assert = require('assert');
  5. describe('equal', function() {
  6. tests.forEach(function (suite) {
  7. describe(suite.description, function() {
  8. suite.tests.forEach(function (test) {
  9. it(test.description, function() {
  10. assert.strictEqual(equal(test.value1, test.value2), test.equal);
  11. });
  12. });
  13. });
  14. });
  15. });