| 3695 | |
| 3696 | #[test] |
| 3697 | fn test_await_expression() { |
| 3698 | { |
| 3699 | let test_case = &"await a"; |
| 3700 | let mut parser = Parser::new(test_case); |
| 3701 | let program = parser.parse().expect("parsing failed"); |
| 3702 | |
| 3703 | insta::with_settings!({ |
| 3704 | description => test_case.to_string(), // the template source code |
| 3705 | snapshot_path => "../../test_data/output/", |
| 3706 | omit_expression => true // do not include the default expression |
| 3707 | }, { |
| 3708 | assert_debug_snapshot!(program); |
| 3709 | }); |
| 3710 | } |
| 3711 | } |
| 3712 | |
| 3713 | #[test] |
| 3714 | fn test_attribute_ref() { |