File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
test/integration/node-specific/bson-options Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1010* .tmp
1111* .dat
1212* .png
13+ * .heapsnapshot
14+ * .cpuprofile
15+ * .heapprofile
1316test * . *
1417output
1518etc /docs /template /.hugo_build.lock
Original file line number Diff line number Diff line change 11import { expect } from 'chai' ;
2- import { spy } from 'sinon' ;
2+ import * as sinon from 'sinon' ;
33
44import * as BSON from '../../../../src/bson' ;
55
6- const deserializeSpy = spy ( BSON , 'deserialize' ) ;
7-
86const EXPECTED_VALIDATION_DISABLED_ARGUMENT = {
97 utf8 : false
108} ;
@@ -16,8 +14,15 @@ const EXPECTED_VALIDATION_ENABLED_ARGUMENT = {
1614} ;
1715
1816describe ( 'class BinMsg' , ( ) => {
17+ let deserializeSpy : sinon . SinonSpy ;
18+
1919 beforeEach ( ( ) => {
20- deserializeSpy . resetHistory ( ) ;
20+ deserializeSpy = sinon . spy ( BSON , 'deserialize' ) ;
21+ } ) ;
22+
23+ afterEach ( ( ) => {
24+ deserializeSpy . restore ( ) ;
25+ deserializeSpy = null ;
2126 } ) ;
2227
2328 describe ( 'enableUtf8Validation option set to false' , ( ) => {
You can’t perform that action at this time.
0 commit comments