diff --git a/lib/node_modules/@stdlib/repl/test/integration/test.auto_close_pairs.js b/lib/node_modules/@stdlib/repl/test/integration/test.auto_close_pairs.js index 4c96638c4808..69b5ad4a5907 100644 --- a/lib/node_modules/@stdlib/repl/test/integration/test.auto_close_pairs.js +++ b/lib/node_modules/@stdlib/repl/test/integration/test.auto_close_pairs.js @@ -148,6 +148,7 @@ function spliced2expected( s ) { function defaultSettings() { return { 'autoClosePairs': false, + 'autoDeletePairs': false, 'completionPreviews': false }; } @@ -342,13 +343,11 @@ function assertAutoDelete( t, fixture, done ) { N = fixture.expression.length - fixture.cursor; moveBack( istream, N ); - // Enable auto-close: - r.settings( 'autoClosePairs', true ); + // Enable auto-delete: + r.settings( 'autoDeletePairs', true ); // Delete the character in order to trigger auto-delete: - r._rli.write( null, { // eslint-disable-line no-underscore-dangle - 'name': 'backspace' - }); + istream.write( '\x08' ); // Close the input stream: istream.end(); @@ -416,13 +415,11 @@ function assertNoAutoDelete( t, fixture, done ) { N = fixture.expression.length - fixture.cursor; moveBack( istream, N ); - // Enable auto-close: - r.settings( 'autoClosePairs', true ); + // Enable auto-delete: + r.settings( 'autoDeletePairs', true ); // Delete the character in order to trigger auto-delete: - r._rli.write( null, { // eslint-disable-line no-underscore-dangle - 'name': 'backspace' - }); + istream.write( '\x08' ); // Close the input stream: istream.end();