1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-03 04:48:52 -05:00
This commit is contained in:
Ryan Dahl 2018-09-30 11:14:44 -04:00
parent 4c6f37cec3
commit cec82263c1
3 changed files with 18 additions and 15 deletions

View file

@ -68,10 +68,10 @@ test(function newHeaderTest() {
});
const headerDict = {
"name1": "value1",
"name2": "value2",
"name3": "value3",
"name4": undefined,
name1: "value1",
name2: "value2",
name3: "value3",
name4: undefined,
"Content-Type": "value4"
};
const headerSeq = [];
@ -123,7 +123,10 @@ test(function headerHasSuccess() {
for (const name in headerDict) {
assert(headers.has(name), "headers has name " + name);
/* tslint:disable-next-line:max-line-length */
assert(!headers.has("nameNotInHeaders"), "headers do not have header: nameNotInHeaders");
assert(
!headers.has("nameNotInHeaders"),
"headers do not have header: nameNotInHeaders"
);
}
});
@ -145,9 +148,9 @@ test(function headerGetSuccess() {
});
const headerEntriesDict = {
"name1": "value1",
"Name2": "value2",
"name": "value3",
name1: "value1",
Name2: "value2",
name: "value3",
"content-Type": "value4",
"Content-Typ": "value5",
"Content-Types": "value6"

View file

@ -148,7 +148,7 @@ export async function main() {
categories: sha1List
},
y: {
label: "seconds",
label: "seconds"
}
}
});