mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-09 21:01:58 -04:00
update CacheControl test
This commit is contained in:
1 file changed
+4
-1
Vendored
+4
-1
@@ -285,7 +285,10 @@ test "Cache: CacheControl.parse" {
|
||||
try testing.expectEqual(null, CacheControl.parse("no-cache"));
|
||||
try testing.expectEqual(null, CacheControl.parse("private"));
|
||||
try testing.expectEqual(null, CacheControl.parse("max-age=300, no-store"));
|
||||
try testing.expectEqual(null, CacheControl.parse("no-cache, max-age=300"));
|
||||
try testing.expectEqual(
|
||||
CacheControl{ .max_age = 300, .must_revalidate = true },
|
||||
CacheControl.parse("no-cache, max-age=300"),
|
||||
);
|
||||
try testing.expectEqual(null, CacheControl.parse("Private, max-age=300"));
|
||||
|
||||
try testing.expectEqual(null, CacheControl.parse("max-age=0"));
|
||||
|
||||
Reference in new issue
Block a user