File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1985,7 +1985,7 @@ describe('document', function() {
1985
1985
1986
1986
const err = await person . save ( ) . then ( ( ) => null , err => err ) ;
1987
1987
assert . equal ( err instanceof DocumentNotFoundError , true ) ;
1988
- assert . equal ( err . message , `No document found for query "{ _id: new ObjectId(" ${ person . _id } " ) }" on model "Person"` ) ;
1988
+ assert . equal ( err . message , `No document found for query "{ _id: new ObjectId(' ${ person . _id } ' ) }" on model "Person"` ) ;
1989
1989
} ) ;
1990
1990
1991
1991
it ( 'saving a document when version bump required, throws a VersionError when document is not found (gh-10974)' , async function ( ) {
@@ -2020,7 +2020,7 @@ describe('document', function() {
2020
2020
}
2021
2021
catch ( err ) {
2022
2022
assert . equal ( err instanceof DocumentNotFoundError , true ) ;
2023
- assert . equal ( err . message , `No document found for query "{ _id: new ObjectId(" ${ person . _id } " ) }" on model "Person"` ) ;
2023
+ assert . equal ( err . message , `No document found for query "{ _id: new ObjectId(' ${ person . _id } ' ) }" on model "Person"` ) ;
2024
2024
threw = true ;
2025
2025
}
2026
2026
You can’t perform that action at this time.
0 commit comments