UNPKG
must-sinon
Version:
latest (0.0.0)
0.0.0
Sinon assertions for js-must
github.com/JohnnyEstilles/must-sinon
JohnnyEstilles/must-sinon
must-sinon
/
plugin
/
define-passthrough.js
12 lines
(8 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
;
var
defineGetter =
require
(
'oolong'
).
defineGetter
;
function
definePassthrough
(
Must, name
) {
defineGetter
(
Must
.
prototype
, name,
function
(
) {
return
this
; }); }
module
.
exports
= definePassthrough;