Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
change check from === 'MacOS' to !== 'Windows'
Browse files Browse the repository at this point in the history
  • Loading branch information
ademuk committed Jun 3, 2018
1 parent 6fd0153 commit 3e69bc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/js/tabs/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,13 @@ TABS.cli.read = function (readInfo) {

switch (data[i]) {
case lineFeedCode:
if (GUI.operating_system != "MacOS") {
if (GUI.operating_system === "Windows") {
writeLineToOutput(this.cliBuffer);
this.cliBuffer = "";
}
break;
case carriageReturnCode:
if (GUI.operating_system == "MacOS") {
if (GUI.operating_system !== "Windows") {
writeLineToOutput(this.cliBuffer);
this.cliBuffer = "";
}
Expand Down
2 changes: 1 addition & 1 deletion test/tabs/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('TABS.cli', () => {

// Ambigous auto-complete from firmware is preceded with an \r carriage return
// which only renders a line break on Mac
const expectedValue = GUI.operating_system === "MacOS" ?
const expectedValue = GUI.operating_system !== "Windows" ?
'se<br>serialpassthrough\tservo<br>' :
'seserialpassthrough\tservo<br>';
expect(cliOutput.html()).to.equal(expectedValue);
Expand Down

0 comments on commit 3e69bc7

Please sign in to comment.