silverstripe-framework/thirdparty/jquery-changetracker/spec/lib/jspec.nodejs.js
David Craig 2140025c20 Implement RFC-7 JavaScript module loader
- Adds ES6 support via Babel
- Transforms existing JavaScript to UMD modules
- Adds module bundling via Browserify
- Existing JavaScript converted to UMD modules
- lib.js and leftandmain.js are bundled using browserify
- JavaScript minifying of bundles handed by gulp
2016-01-26 11:39:20 +13: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'
}
})