Skip to content

Commit 4c44101

Browse files
committed
remove some test
1 parent 4f191b9 commit 4c44101

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

  • crates/emmylua_ls/src/handlers/document_formatting

crates/emmylua_ls/src/handlers/document_formatting/mod.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -125,29 +125,3 @@ impl RegisterCapabilities for DocumentFormattingCapabilities {
125125
server_capabilities.document_formatting_provider = Some(OneOf::Left(true));
126126
}
127127
}
128-
129-
#[cfg(test)]
130-
mod tests {
131-
use super::format_with_workspace_formatter;
132-
use emmylua_code_analysis::Emmyrc;
133-
134-
#[test]
135-
fn formats_constructor_source_doc_block() {
136-
let input = r#"-- ============================================================================
137-
-- @source - Source file annotation
138-
-- ============================================================================
139-
---@[constructor("1123")]
140-
---@source https://example.com/api/docs
141-
---@param id number
142-
---@return table
143-
function externalAPI(id)
144-
return {}
145-
end
146-
"#;
147-
148-
let formatted =
149-
format_with_workspace_formatter(input, None, &Emmyrc::default(), 4, true, true);
150-
151-
assert_eq!(formatted, input);
152-
}
153-
}

0 commit comments

Comments
 (0)