Skip to content

Commit

Permalink
Minor API cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hershal committed Jun 30, 2017
1 parent 1757e3d commit 421fe62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface IStreamDelegate {

export interface IStreamHandlerDelegate extends IStreamDelegate {
/* Defines the chunk creation trigger. */
streamChunkTrigger(): string;
streamChunkTriggerString(): string;
}


Expand Down
2 changes: 1 addition & 1 deletion src/StreamHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class StandardInputStreamHandler {
private debug = Debug('InputParserReadFilesOptionalStandardInput');

public once(stream: any): Promise<string[]> {
const chunkString = this.delegate.streamChunkTrigger();
const chunkString = this.delegate.streamChunkTriggerString();
const serializer = new StreamSerializer(chunkString);

return new Promise((resolve, reject) => {
Expand Down
3 changes: 1 addition & 2 deletions test/StreamHandlerSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class BasicStreamHandlerDelegate implements IStreamHandlerDelegate {
}

/* Delegate methods */
public streamChunkTrigger(): string {
public streamChunkTriggerString(): string {
return this.streamSerializationString;
}

Expand All @@ -39,7 +39,6 @@ describe('Stream Handler', function () {
handler = new StandardInputStreamHandler();
handlerDelegate = new BasicStreamHandlerDelegate();
handler.delegate = handlerDelegate;
handler.delegate
stdin = stdio().stdin;
});

Expand Down

0 comments on commit 421fe62

Please sign in to comment.