mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
chore: fix typos (#19572)
This commit is contained in:
parent
ad3c494b46
commit
801b9ec62d
83 changed files with 169 additions and 168 deletions
|
@ -1325,7 +1325,7 @@ fn lsp_hover_change_mbc() {
|
|||
"end": {
|
||||
"line": 1,
|
||||
// the LSP uses utf16 encoded characters indexes, so
|
||||
// after the deno emoiji is character index 15
|
||||
// after the deno emoji is character index 15
|
||||
"character": 15
|
||||
}
|
||||
},
|
||||
|
@ -2088,7 +2088,7 @@ fn lsp_document_symbol() {
|
|||
"uri": "file:///a/file.ts",
|
||||
"languageId": "typescript",
|
||||
"version": 1,
|
||||
"text": "interface IFoo {\n foo(): boolean;\n}\n\nclass Bar implements IFoo {\n constructor(public x: number) { }\n foo() { return true; }\n /** @deprecated */\n baz() { return false; }\n get value(): number { return 0; }\n set value(newVavlue: number) { return; }\n static staticBar = new Bar(0);\n private static getStaticBar() { return Bar.staticBar; }\n}\n\nenum Values { value1, value2 }\n\nvar bar: IFoo = new Bar(3);"
|
||||
"text": "interface IFoo {\n foo(): boolean;\n}\n\nclass Bar implements IFoo {\n constructor(public x: number) { }\n foo() { return true; }\n /** @deprecated */\n baz() { return false; }\n get value(): number { return 0; }\n set value(_newValue: number) { return; }\n static staticBar = new Bar(0);\n private static getStaticBar() { return Bar.staticBar; }\n}\n\nenum Values { value1, value2 }\n\nvar bar: IFoo = new Bar(3);"
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
@ -3114,7 +3114,7 @@ fn lsp_code_lens_test_disabled() {
|
|||
"text": "const { test } = Deno;\nconst { test: test2 } = Deno;\nconst test3 = Deno.test;\n\nDeno.test(\"test a\", () => {});\nDeno.test({\n name: \"test b\",\n fn() {},\n});\ntest({\n name: \"test c\",\n fn() {},\n});\ntest(\"test d\", () => {});\ntest2({\n name: \"test e\",\n fn() {},\n});\ntest2(\"test f\", () => {});\ntest3({\n name: \"test g\",\n fn() {},\n});\ntest3(\"test h\", () => {});\n"
|
||||
}
|
||||
}),
|
||||
// diable test code lens
|
||||
// disable test code lens
|
||||
json!([{
|
||||
"enable": true,
|
||||
"codeLens": {
|
||||
|
@ -7373,7 +7373,7 @@ Deno.test({
|
|||
.as_str()
|
||||
.unwrap();
|
||||
// deno test's output capturing flushes with a zero-width space in order to
|
||||
// synchronize the output pipes. Occassionally this zero width space
|
||||
// synchronize the output pipes. Occasionally this zero width space
|
||||
// might end up in the output so strip it from the output comparison here.
|
||||
assert_eq!(notification_value.replace('\u{200B}', ""), "test a\r\n");
|
||||
assert_eq!(
|
||||
|
|
|
@ -2466,7 +2466,7 @@ mod permissions {
|
|||
|
||||
#[test]
|
||||
fn net_listen_allow_localhost() {
|
||||
// Port 4600 is chosen to not colide with those used by
|
||||
// Port 4600 is chosen to not collide with those used by
|
||||
// target/debug/test_server
|
||||
let (_, err) = util::run_and_collect_output(
|
||||
true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue