@@ -1011,9 +1011,9 @@ describe('APM', function() {
1011
1011
expect ( databaseName ) . to . equal ( result . databaseName ) ;
1012
1012
1013
1013
// Do we have a getMore command or killCursor command
1014
- if ( commandName == 'getMore' ) {
1014
+ if ( commandName === 'getMore' ) {
1015
1015
expect ( result . command . getMore . isZero ( ) ) . to . be . false ;
1016
- } else if ( commandName == 'killCursors' ) {
1016
+ } else if ( commandName === 'killCursors' ) {
1017
1017
// eslint-disable-line
1018
1018
} else {
1019
1019
expect ( command ) . to . eql ( result . command ) ;
@@ -1031,7 +1031,7 @@ describe('APM', function() {
1031
1031
// Validate the test
1032
1032
expect ( commandName ) . to . equal ( result . commandName ) ;
1033
1033
// Do we have a getMore command
1034
- if ( commandName . toLowerCase ( ) == 'getmore' || commandName . toLowerCase ( ) == 'find' ) {
1034
+ if ( commandName . toLowerCase ( ) === 'getmore' || commandName . toLowerCase ( ) = == 'find' ) {
1035
1035
reply . cursor . id = result . reply . cursor . id ;
1036
1036
expect ( reply ) . to . eql ( result . reply ) ;
1037
1037
}
@@ -1136,15 +1136,15 @@ describe('APM', function() {
1136
1136
}
1137
1137
}
1138
1138
1139
- if ( typeof args . ordered == 'boolean' ) {
1139
+ if ( typeof args . ordered === 'boolean' ) {
1140
1140
if ( options == null ) {
1141
1141
options = { ordered : args . ordered } ;
1142
1142
} else {
1143
1143
options . ordered = args . ordered ;
1144
1144
}
1145
1145
}
1146
1146
1147
- if ( typeof args . upsert == 'boolean' ) {
1147
+ if ( typeof args . upsert === 'boolean' ) {
1148
1148
if ( options == null ) {
1149
1149
options = { upsert : args . upsert } ;
1150
1150
} else {
@@ -1153,7 +1153,7 @@ describe('APM', function() {
1153
1153
}
1154
1154
1155
1155
// Find command is special needs to executed using toArray
1156
- if ( operation . name == 'find' ) {
1156
+ if ( operation . name === 'find' ) {
1157
1157
var cursor = collection [ commandName ] ( ) ;
1158
1158
1159
1159
// Set the options
@@ -1245,6 +1245,7 @@ describe('APM', function() {
1245
1245
executeOperation ( client , listener , scenario , test , err => {
1246
1246
expect ( err ) . to . not . exist ;
1247
1247
1248
+ listener . uninstrument ( ) ;
1248
1249
client . close ( ) ;
1249
1250
done ( ) ;
1250
1251
} ) ;
0 commit comments