Skip to content

Commit 0f3a05a

Browse files
committed
prettier --write '**/*.{js,json,md}'
1 parent 64e81fa commit 0f3a05a

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

test/convertMarkdownToMocha.spec.js

+13-14
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,19 @@ function createTestRunnerEnvironment(code) {
5757
var expect = require('unexpected')
5858
.clone()
5959
.use(require('magicpen-prism'))
60-
.addAssertion('<string> to come out as <function|string>', function (
61-
expect,
62-
subject,
63-
value
64-
) {
65-
expect(
66-
codeToString(convertMarkdownToMocha(subject).code).replace(
67-
/ {4}var fileName = '<inline code>'[\s\S]*$/,
68-
'}'
69-
),
70-
'to equal',
71-
codeToString(value).replace(/<projectPath>/g, projectPath)
72-
);
73-
});
60+
.addAssertion(
61+
'<string> to come out as <function|string>',
62+
function (expect, subject, value) {
63+
expect(
64+
codeToString(convertMarkdownToMocha(subject).code).replace(
65+
/ {4}var fileName = '<inline code>'[\s\S]*$/,
66+
'}'
67+
),
68+
'to equal',
69+
codeToString(value).replace(/<projectPath>/g, projectPath)
70+
);
71+
}
72+
);
7473

7574
var synchronousSuccessfulSnippet =
7675
"var foo = 'abc';\n" + "expect(foo, 'to equal', 'abc');\n";

0 commit comments

Comments
 (0)