codecademy/lodash/test/lodash.js
2023-06-27 18:12:38 -07:00

17 lines
No EOL
369 B
JavaScript

const _ = require('../_.js');
const assert = require('./assert.js');
const TEST_NAME = 'Lodash Object';
assert.beginTestBlock(TEST_NAME);
assert.exists(TEST_NAME, '_', _);
if (!_) {
assert.terminateTestBlock();
return;
}
assert.equals(TEST_NAME, 'The value of _ is an object', '_', Object.prototype.toString.call(_), '[object Object]');
assert.endTestBlock();