mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04: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
|
|
);
|
|
});
|