Skip to content

Commit 38a6741

Browse files
committed
Fix tests
1 parent 655f81f commit 38a6741

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/test/github/markdownUtils.test.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,34 @@
66
import * as assert from 'assert';
77
import * as marked from 'marked';
88
import { PlainTextRenderer } from '../../github/markdownUtils';
9+
import { describe, it } from 'mocha';
910

10-
suite('PlainTextRenderer', () => {
11-
test('should escape inline code by default', () => {
11+
describe('PlainTextRenderer', () => {
12+
it('should escape inline code by default', () => {
1213
const renderer = new PlainTextRenderer();
1314
const result = marked.parse('rename the `Foo` class', { renderer, smartypants: true });
1415
assert.strictEqual(result.trim(), 'rename the \\`Foo\\` class');
1516
});
1617

17-
test('should preserve inline code when allowSimpleMarkdown is true', () => {
18+
it('should preserve inline code when allowSimpleMarkdown is true', () => {
1819
const renderer = new PlainTextRenderer(true);
1920
const result = marked.parse('rename the `Foo` class', { renderer, smartypants: true });
2021
assert.strictEqual(result.trim(), 'rename the `Foo` class');
2122
});
2223

23-
test('should handle multiple inline code spans', () => {
24+
it('should handle multiple inline code spans', () => {
2425
const renderer = new PlainTextRenderer(true);
2526
const result = marked.parse('rename the `Foo` class to `Bar`', { renderer, smartypants: true });
2627
assert.strictEqual(result.trim(), 'rename the `Foo` class to `Bar`');
2728
});
2829

29-
test('should still escape when allowSimpleMarkdown is false', () => {
30+
it('should still escape when allowSimpleMarkdown is false', () => {
3031
const renderer = new PlainTextRenderer(false);
3132
const result = marked.parse('rename the `Foo` class to `Bar`', { renderer, smartypants: true });
3233
assert.strictEqual(result.trim(), 'rename the \\`Foo\\` class to \\`Bar\\`');
3334
});
3435

35-
test('should strip all formatting by default', () => {
36+
it('should strip all formatting by default', () => {
3637
const renderer = new PlainTextRenderer(false);
3738
const result = marked.parse('rename the `Foo` class to **`Bar`** and make it *italic*', { renderer, smartypants: true });
3839
assert.strictEqual(result.trim(), 'rename the \\`Foo\\` class to \\`Bar\\` and make it italic');

0 commit comments

Comments
 (0)