Skip to content

Commit

Permalink
blockString-tests: remove duplicate test, fix grammar (#3459)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jan 16, 2022
1 parent 40c160e commit 730d5af
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/language/__tests__/blockString-test.ts
Expand Up @@ -20,7 +20,7 @@ describe('dedentBlockStringLines', () => {
expectDedent(['']).to.deep.equal([]);
});

it('do not dedent first line', () => {
it('does not dedent first line', () => {
expectDedent([' a']).to.deep.equal([' a']);
expectDedent([' a', ' b']).to.deep.equal([' a', 'b']);
});
Expand Down Expand Up @@ -162,12 +162,7 @@ describe('isPrintableAsBlockString', () => {
expectNonPrintable(' \t');
});

it('rejects strings with non-printable character', () => {
expectNonPrintable('\x00');
expectNonPrintable('a\x00b');
});

it('rejects strings with non-printable character', () => {
it('rejects strings with non-printable characters', () => {
expectNonPrintable('\x00');
expectNonPrintable('a\x00b');
});
Expand All @@ -194,7 +189,7 @@ describe('isPrintableAsBlockString', () => {
expectNonPrintable('\n\na');
});

it('rejects strings with leading empty lines', () => {
it('rejects strings with trailing empty lines', () => {
expectNonPrintable('a\n');
expectNonPrintable('a\n ');
expectNonPrintable('a\n\t');
Expand All @@ -217,7 +212,7 @@ describe('printBlockString', () => {
};
}

it('do not escape characters', () => {
it('does not escape characters', () => {
const str = '" \\ / \b \f \n \r \t';
expectBlockString(str).toEqual({
readable: '"""\n' + str + '\n"""',
Expand Down

0 comments on commit 730d5af

Please sign in to comment.