Skip to content
File

Blob: src/workerd/api/tests/compat-flag-enabled-test.js

javascript22 lines
1// Copyright (c) 2025 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4// Test that verifies compat flags are at NEWEST state (all enabled).
5// This test only runs in the @all-compat-flags variant (default variant is disabled).
6 
7import { strictEqual } from 'node:assert';
8 
9export const compatFlagEnabledTest = {
10 test() {
11 // With compat date 2999-12-31, formdata_parser_supports_files should be enabled
12 // (it was enabled on 2021-11-03).
13 const isEnabled =
14 Cloudflare.compatibilityFlags.formdata_parser_supports_files;
15 strictEqual(
16 isEnabled,
17 true,
18 'formdata_parser_supports_files should be ENABLED with newest compat date'
19 );
20 },
21};