silverstripe-framework/admin/thirdparty/jquery-changetracker/spec/lib/jspec.nodejs.js
Ingo Schommer 8f23fa99a5 API Moved CMS-specific JavaScript to admin/thirdparty
The 'admin' module will be split off from 'framework',
where 'framework' only provides (mostly) frontend-agnostic PHP classes.
For example, HTMLEditorField.php has a TinyMCEConfig.php driver,
but doesn't come with its own JS includes.
2016-09-16 13:46:10 +12:00

19 lines
560 B
JavaScript
Executable File

// JSpec - node - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)
JSpec
.include({
name: 'node',
// --- Matchers
matchers : {
have_enumerable_property: 'actual.propertyIsEnumerable(expected)',
have_writable_property: 'Object.getOwnPropertyDescriptor(actual, expected).writable === true',
have_configurable_property: 'Object.getOwnPropertyDescriptor(actual, expected).configurable === true',
have_keys: 'does(Object.keys(actual), "eql", expected)',
have_prototype: 'Object.getPrototypeOf(actual) === expected'
}
})