blob: d04c06ef232898084028a1ec057a1a4230814253 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { test } from "../testing/mod.ts";
import { assertEq } from "../testing/asserts.ts";
import { isFormFile } from "./formfile.ts";
test(function multipartIsFormFile() {
assertEq(
isFormFile({
filename: "foo",
type: "application/json"
}),
true
);
assertEq(
isFormFile({
filename: "foo"
}),
false
);
});
|