mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 10:09:20 -05:00
19 lines
399 B
TypeScript
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
|
|
);
|
|
});
|