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