Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blockString-tests: remove duplicate test, fix grammar #3459

Merged
merged 1 commit into from
Jan 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions src/language/__tests__/blockString-test.ts
Original file line number Diff line number Diff line change
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