1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/multipart/formfile_test.ts
2019-02-10 18:49:48 -05:00

19 lines
399 B
TypeScript

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