Skip to content

Commit

Permalink
Update tests to reflect changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgr committed Oct 14, 2024
1 parent 23bf343 commit 0679cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/caches/mod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { assert, assertEquals, assertNotEquals } from "@std/assert";
import { caches as lruCache } from "./lrucache.ts";
import { caches as headersCache } from "./headerscache.ts";

const MAX_CACHE_SIZE = 1073824;
const MAX_CACHE_SIZE = 1073741824;

const NOT_IMPLEMENTED = () => {
throw new Error("Not Implemented");
Expand Down Expand Up @@ -52,7 +52,7 @@ const baseTest = async (cacheStorageUT: CacheStorage) => {
const cache = await headersCache(lruCache(cacheStorageUT)).open(CACHE_NAME);
const response = () =>
new Response("Hello, World!", {
headers: { "Content-length": `${MAX_CACHE_SIZE / 2}` },
headers: { "Content-length": `${MAX_CACHE_SIZE / 2 }` },
});
for (let i = 0; i < 5; i++) {
const request = createRequest(i);
Expand Down

0 comments on commit 0679cae

Please sign in to comment.