1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/multipart/formfile_test.ts

21 lines
445 B
TypeScript
Raw Normal View History

2019-02-10 18:49:48 -05:00
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
2019-03-06 16:39:50 -05:00
import { test } from "../testing/mod.ts";
import { assertEquals } from "../testing/asserts.ts";
2019-02-10 18:49:48 -05:00
import { isFormFile } from "./formfile.ts";
test(function multipartIsFormFile() {
assertEquals(
2019-02-10 18:49:48 -05:00
isFormFile({
filename: "foo",
type: "application/json"
}),
true
);
assertEquals(
2019-02-10 18:49:48 -05:00
isFormFile({
filename: "foo"
}),
false
);
});