File
Blob: src/workerd/api/tests/compat-flag-disabled-test.js
| 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 OLDEST state (most disabled). |
| 5 | // This test only runs in the default @ variant (@all-compat-flags variant is disabled). |
| 6 | |
| 7 | import { strictEqual } from 'node:assert'; |
| 8 | |
| 9 | export const compatFlagDisabledTest = { |
| 10 | test() { |
| 11 | // With compat date 2000-01-01, formdata_parser_supports_files should be disabled |
| 12 | // (it was enabled on 2021-11-03). |
| 13 | const isEnabled = |
| 14 | Cloudflare.compatibilityFlags.formdata_parser_supports_files; |
| 15 | strictEqual( |
| 16 | isEnabled, |
| 17 | false, |
| 18 | 'formdata_parser_supports_files should be DISABLED with oldest compat date' |
| 19 | ); |
| 20 | }, |
| 21 | }; |