Skip to content
Myr

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 file

Take it

Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b

lines 1–18why, one step back
1
2// JSpec - node - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)34JSpec5.include({6 name: 'node',7 8 // --- Matchers9 10 matchers : {11 have_enumerable_property: 'actual.propertyIsEnumerable(expected)',12 have_writable_property: 'Object.getOwnPropertyDescriptor(actual, expected).writable === true',13 have_configurable_property: 'Object.getOwnPropertyDescriptor(actual, expected).configurable === true',14 have_keys: 'does(Object.keys(actual), "eql", expected)',15 have_prototype: 'Object.getPrototypeOf(actual) === expected'16 }17})18