Skip to content

Commit b520e2f

Browse files
committed
Use standard naming for functions
1 parent 740d4a4 commit b520e2f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/escape-sequences-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var primitive_pty = pty.native.open(COLS, ROWS);
2424
// we just pipe the data from slave to master as a child program would do
2525
// pty.js opens pipe fds with O_NONBLOCK
2626
// just wait 10ms instead of setting fds to blocking mode
27-
function pty_write_read(s, cb) {
27+
function ptyWriteRead(s, cb) {
2828
fs.writeSync(primitive_pty.slave, s);
2929
setTimeout(() => {
3030
var b = Buffer(64000);
@@ -34,8 +34,8 @@ function pty_write_read(s, cb) {
3434
}
3535

3636
// make sure raw pty is at x=0 and has no pending data
37-
function pty_reset(cb) {
38-
pty_write_read('\r\n', cb);
37+
function ptyReset(cb) {
38+
ptyWriteRead('\r\n', cb);
3939
}
4040

4141
/* debug helpers */
@@ -107,9 +107,9 @@ describe('xterm output comparison', function() {
107107
}
108108
(function(filename) {
109109
it(filename.split('/').slice(-1)[0], done => {
110-
pty_reset(() => {
110+
ptyReset(() => {
111111
var in_file = fs.readFileSync(filename, 'utf8');
112-
pty_write_read(in_file, from_pty => {
112+
ptyWriteRead(in_file, from_pty => {
113113
// uncomment this to get log from terminal
114114
//console.log = function(){};
115115

0 commit comments

Comments
 (0)