File tree 1 file changed +13
-14
lines changed
1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -57,20 +57,19 @@ function createTestRunnerEnvironment(code) {
57
57
var expect = require ( 'unexpected' )
58
58
. clone ( )
59
59
. 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 } v a r f i l e N a m e = ' < i n l i n e c o d e > ' [ \s \S ] * $ / ,
68
- '}'
69
- ) ,
70
- 'to equal' ,
71
- codeToString ( value ) . replace ( / < p r o j e c t P a t h > / 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 } v a r f i l e N a m e = ' < i n l i n e c o d e > ' [ \s \S ] * $ / ,
66
+ '}'
67
+ ) ,
68
+ 'to equal' ,
69
+ codeToString ( value ) . replace ( / < p r o j e c t P a t h > / g, projectPath )
70
+ ) ;
71
+ }
72
+ ) ;
74
73
75
74
var synchronousSuccessfulSnippet =
76
75
"var foo = 'abc';\n" + "expect(foo, 'to equal', 'abc');\n" ;
You can’t perform that action at this time.
0 commit comments