@@ -1676,8 +1676,6 @@ describe('stringifyWithMaxLen', function () {
16761676 } ) ;
16771677 } ) ;
16781678
1679- describe ( 'when stringifying a BSON Decimal128 field' , function ( ) { } ) ;
1680-
16811679 describe ( 'when stringifying a BSON Double field' , function ( ) {
16821680 it ( 'does not prematurely redact the next key' , function ( ) {
16831681 const doc = {
@@ -1702,18 +1700,6 @@ describe('stringifyWithMaxLen', function () {
17021700 } ) ;
17031701 } ) ;
17041702
1705- describe ( 'when stringifying a BSON Long field' , function ( ) {
1706- it ( 'does not prematurely redact the next key' , function ( ) {
1707- const doc = {
1708- c : new Long ( 123 ) ,
1709- b : 'bbb'
1710- } ;
1711- returnVal = stringifyWithMaxLen ( doc , 11 ) ;
1712-
1713- expect ( returnVal ) . to . contain ( '"b...' ) ;
1714- } ) ;
1715- } ) ;
1716-
17171703 describe ( 'when stringifying a BSON MaxKey field' , function ( ) {
17181704 it ( 'does not prematurely redact the next key' , function ( ) {
17191705 const doc = {
@@ -1761,48 +1747,4 @@ describe('stringifyWithMaxLen', function () {
17611747 expect ( returnVal ) . to . contain ( '"b...' ) ;
17621748 } ) ;
17631749 } ) ;
1764-
1765- describe ( 'when stringifying a BSON BSONSymbol field' , function ( ) {
1766- it ( 'does not prematurely redact the next key' , function ( ) {
1767- const doc = {
1768- c : new BSONSymbol ( 'testSymbol' ) ,
1769- b : 'bbb'
1770- } ;
1771- returnVal = stringifyWithMaxLen ( doc , 32 ) ;
1772-
1773- expect ( returnVal ) . to . contain ( '"b...' ) ;
1774- } ) ;
1775- } ) ;
1776-
1777- describe ( 'when stringifying a BSON DBRef field' , function ( ) {
1778- describe ( 'when db, collection, oid and fields are defined' , function ( ) {
1779- // TODO
1780- } ) ;
1781-
1782- describe ( 'when db, collection and oid are defined' , function ( ) {
1783- it ( 'does not prematurely redact the next key' , function ( ) {
1784- const oid = new ObjectId ( ) ;
1785- const doc = {
1786- c : new DBRef ( 'coll' , oid , 'db' ) ,
1787- b : 'bbb'
1788- } ;
1789- returnVal = stringifyWithMaxLen ( doc , 76 ) ;
1790-
1791- expect ( returnVal ) . to . contain ( '"b...' ) ;
1792- } ) ;
1793- } ) ;
1794-
1795- describe ( 'when collection and oid are defined' , function ( ) {
1796- it ( 'does not prematurely redact the next key' , function ( ) {
1797- const oid = new ObjectId ( ) ;
1798- const doc = {
1799- c : new DBRef ( 'coll' , oid ) ,
1800- b : 'bbb'
1801- } ;
1802- returnVal = stringifyWithMaxLen ( doc , 65 ) ;
1803-
1804- expect ( returnVal ) . to . contain ( '"b...' ) ;
1805- } ) ;
1806- } ) ;
1807- } ) ;
18081750} ) ;
0 commit comments