1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
denoland-deno/multipart/formfile_test.ts

21 lines
433 B
TypeScript
Raw Normal View History

// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { test } from "../testing/mod.ts";
import { assertEq } from "../testing/asserts.ts";
import { isFormFile } from "./formfile.ts";
test(function multipartIsFormFile() {
assertEq(
isFormFile({
filename: "foo",
type: "application/json"
}),
true
);
assertEq(
isFormFile({
filename: "foo"
}),
false
);
});