Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(media_types): format test names #4380

Merged
merged 6 commits into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
iuioiua marked this conversation as resolved.
Show resolved Hide resolved
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