1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 17:49:08 -05:00
denoland-deno/multipart/formfile_test.ts

21 lines
451 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";
2019-04-24 07:41:23 -04:00
test(function multipartIsFormFile(): void {
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
);
});