Skip to content

Commit 63c7847

Browse files
giacomocavalierilpil
authored andcommitted
failing snapshot
1 parent b879a6d commit 63c7847

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

compiler-core/src/javascript/tests/functions.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -585,15 +585,3 @@ pub fn main() { 1 }
585585
"
586586
);
587587
}
588-
589-
#[test]
590-
fn private_function_gets_ignored_jsdoc() {
591-
assert_js!(
592-
"
593-
/// Hello! This is the documentation of the `main`
594-
/// function, which is private!
595-
///
596-
fn main() { 1 }
597-
"
598-
);
599-
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
source: compiler-core/src/javascript/tests/functions.rs
3+
assertion_line: 591
34
expression: "\n/// Hello! This is the documentation of the `main`\n/// function, which is private!\n///\nfn main() { 1 }\n"
5+
snapshot_kind: text
46
---
57
----- SOURCE CODE
68

@@ -11,12 +13,4 @@ fn main() { 1 }
1113

1214

1315
----- COMPILED JAVASCRIPT
14-
/**
15-
* Hello! This is the documentation of the `main`
16-
* function, which is private!
17-
*
18-
* @ignore
19-
*/
20-
function main() {
21-
return 1;
22-
}
16+
export {}

0 commit comments

Comments
 (0)