mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 13:44:08 +00:00
chore: fix typos (#19572)
This commit is contained in:
parent
ad3c494b46
commit
801b9ec62d
83 changed files with 169 additions and 168 deletions
|
@ -250,17 +250,17 @@ Deno.test(function toStringShouldBeWebCompatibility() {
|
|||
|
||||
Deno.test(function textEncoderShouldCoerceToString() {
|
||||
const encoder = new TextEncoder();
|
||||
const fixutreText = "text";
|
||||
const fixtureText = "text";
|
||||
const fixture = {
|
||||
toString() {
|
||||
return fixutreText;
|
||||
return fixtureText;
|
||||
},
|
||||
};
|
||||
|
||||
const bytes = encoder.encode(fixture as unknown as string);
|
||||
const decoder = new TextDecoder();
|
||||
const decoded = decoder.decode(bytes);
|
||||
assertEquals(decoded, fixutreText);
|
||||
assertEquals(decoded, fixtureText);
|
||||
});
|
||||
|
||||
Deno.test(function binaryEncode() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue