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 10
10
* .tmp
11
11
* .dat
12
12
* .png
13
+ * .heapsnapshot
14
+ * .cpuprofile
15
+ * .heapprofile
13
16
test * . *
14
17
output
15
18
etc /docs /template /.hugo_build.lock
Original file line number Diff line number Diff line change 1
1
import { expect } from 'chai' ;
2
- import { spy } from 'sinon' ;
2
+ import * as sinon from 'sinon' ;
3
3
4
4
import * as BSON from '../../../../src/bson' ;
5
5
6
- const deserializeSpy = spy ( BSON , 'deserialize' ) ;
7
-
8
6
const EXPECTED_VALIDATION_DISABLED_ARGUMENT = {
9
7
utf8 : false
10
8
} ;
@@ -16,8 +14,15 @@ const EXPECTED_VALIDATION_ENABLED_ARGUMENT = {
16
14
} ;
17
15
18
16
describe ( 'class BinMsg' , ( ) => {
17
+ let deserializeSpy : sinon . SinonSpy ;
18
+
19
19
beforeEach ( ( ) => {
20
- deserializeSpy . resetHistory ( ) ;
20
+ deserializeSpy = sinon . spy ( BSON , 'deserialize' ) ;
21
+ } ) ;
22
+
23
+ afterEach ( ( ) => {
24
+ deserializeSpy . restore ( ) ;
25
+ deserializeSpy = null ;
21
26
} ) ;
22
27
23
28
describe ( 'enableUtf8Validation option set to false' , ( ) => {
You can’t perform that action at this time.
0 commit comments