Skip to content

Commit

Permalink
chore(media_types): format test names (#4380)
Browse files Browse the repository at this point in the history
  • Loading branch information
timreichen authored Feb 25, 2024
1 parent 7fb8c5f commit eac60e6
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions media_types/_util_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assertEquals } from "../assert/mod.ts";
import { consumeMediaParam, consumeToken, consumeValue } from "./_util.ts";

Deno.test({
name: "media_types::util - consumeToken()",
name: "consumeToken()",
fn() {
const fixtures = [
["foo bar", "foo", " bar"],
Expand All @@ -19,7 +19,7 @@ Deno.test({
});

Deno.test({
name: "media_types::util - consumeValue()",
name: "consumeValue()",
fn() {
const fixtures = [
["foo bar", "foo", " bar"],
Expand All @@ -44,7 +44,7 @@ Deno.test({
});

Deno.test({
name: "media_types::util - consumeMediaParam()",
name: "consumeMediaParam()",
fn() {
const fixtures = [
[" ; foo=bar", "foo", "bar", ""],
Expand Down
4 changes: 2 additions & 2 deletions media_types/content_type_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { contentType } from "./content_type.ts";
import { assertEquals } from "../assert/mod.ts";

Deno.test({
name: "media_types - contentType()",
name: "contentType()",
fn() {
const fixtures = [
[".json", "application/json; charset=UTF-8"],
Expand All @@ -22,7 +22,7 @@ Deno.test({
});

Deno.test({
name: "media_types - contentType()",
name: "contentType() implies types",
fn() {
let _str: string;
// For well-known content types, the return type is a string.
Expand Down
2 changes: 1 addition & 1 deletion media_types/extension_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assertEquals } from "../assert/mod.ts";
import { extension } from "./mod.ts";

Deno.test({
name: "media_types - extension()",
name: "extension()",
fn() {
const fixtures: [string, string | undefined][] = [
["image/gif", "gif"],
Expand Down
2 changes: 1 addition & 1 deletion media_types/extensions_by_type_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assertEquals } from "../assert/mod.ts";
import { extensionsByType } from "./extensions_by_type.ts";

Deno.test({
name: "media_types - extensionsByType()",
name: "extensionsByType()",
fn() {
const fixtures: [string, string[] | undefined][] = [
["image/gif", ["gif"]],
Expand Down
2 changes: 1 addition & 1 deletion media_types/format_media_type_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assertEquals } from "../assert/mod.ts";
import { formatMediaType } from "./mod.ts";

Deno.test({
name: "media_types - formatMediaType",
name: "formatMediaType()",
fn() {
const fixtures = [
["noslash", { X: "Y" }, "noslash; x=Y"],
Expand Down
2 changes: 1 addition & 1 deletion media_types/get_charset_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assertEquals } from "../assert/mod.ts";
import { getCharset } from "./mod.ts";

Deno.test({
name: "media-types - getCharset()",
name: "getCharset()",
fn() {
const fixtures = [
["text/plain", "UTF-8"],
Expand Down
2 changes: 1 addition & 1 deletion media_types/parse_media_type_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assertEquals } from "../assert/mod.ts";
import { parseMediaType } from "./mod.ts";

Deno.test({
name: "media_types - parseMediaType()",
name: "parseMediaType()",
fn() {
const nameFoo = { "name": "foo" };
const fixtures: [string, string, Record<string, string> | undefined][] = [
Expand Down
2 changes: 1 addition & 1 deletion media_types/type_by_extension_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assertEquals } from "../assert/mod.ts";
import { typeByExtension } from "./mod.ts";

Deno.test({
name: "media_types - typeByExtension",
name: "typeByExtension()",
fn() {
const fixtures = [
["js", "application/javascript"],
Expand Down

0 comments on commit eac60e6

Please sign in to comment.