UNPKG
@graphql-mocks/sinon
Version:
latest (0.6.0)
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
Mock using graphql-mocks with sinon spy
graphql-mocks/graphql-mocks
@graphql-mocks/sinon
/
es
/
spy-middleware.mjs
11 lines
(10 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ embed }
from
'graphql-mocks'
;
import
{ spyWrapper }
from
'./spy-wrapper.mjs'
;
function
spyMiddleware
(
h
) {
return
embed
({
highlight
: h,
wrappers
: [spyWrapper] }); }
export
{ spyMiddleware };
//# sourceMappingURL=spy-middleware.mjs.map