Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
Added a future test. It fails right now because we don't support if s…
Browse files Browse the repository at this point in the history
…tatements without a then
  • Loading branch information
TwitchBronBron committed Mar 14, 2018
1 parent 27cb136 commit ba98960
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/BrightScriptFormatter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ describe('BrightScriptFormatter', () => {
`if (removeFoo <> invalid) then\n lineups["video"].push(invalid)`
);
});

//this does not work yet.
it.skip('works with if statements that do not have a "then" after them', () => {
let program = `if (request.AsyncGetToString())\n scope.immediatelyFailed = false\nelse\n scope.immediatelyFailed = true\nend if`;
expect(formatter.format(program)).to.equal(program);
});
});

describe('keywordCase', () => {
Expand Down

0 comments on commit ba98960

Please sign in to comment.