Skip to content

Commit

Permalink
Send a terminal stdin message to make sure to get output.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Dec 21, 2019
1 parent e18846e commit dbba8a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test-services/src/terminal/terminal.spec.ts
Expand Up @@ -38,11 +38,13 @@ describe('terminal', () => {
describe('#messageReceived', () => {
it('should be emitted when a message is received', async () => {
session = await manager.startNew();
await testEmission(session.messageReceived, {
let emission = testEmission(session.messageReceived, {
test: (sender, msg) => {
return msg.type === 'stdout';
}
});
session.send({ type: 'stdin', content: ['cd\r'] });
await emission;
});
});

Expand Down

0 comments on commit dbba8a7

Please sign in to comment.