mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 00:59:24 -05:00
33f62789cd
Original: fda9c98d05
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
|
|
);
|
|
});
|