1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-31 19:44:10 -05:00
denoland-deno/multipart/formfile_test.ts
2019-03-06 16:39:50 -05:00

20 lines
433 B
TypeScript

// 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
);
});