jspec.nodejs.js
This file
Path
spec/lib/jspec.nodejs.js
18 lines · 564 bytes · JavaScript
Last changed by
Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
History of this fileTake it
12345678910111213141516171819
// 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' }})