odin-javascript-exercises/node_modules/fast-deep-equal/spec/index.spec.js

19 lines
426 B
JavaScript
Raw Normal View History

2017-12-15 10:56:14 -08:00
'use strict';
var equal = require('../index');
var tests = require('./tests');
var assert = require('assert');
describe('equal', function() {
tests.forEach(function (suite) {
describe(suite.description, function() {
suite.tests.forEach(function (test) {
it(test.description, function() {
assert.strictEqual(equal(test.value1, test.value2), test.equal);
});
});
});
});
});